locales: the Windows installer's words (wb.installer.*) and its language files, generated from the catalogs

Moved from wayBetter for X: 27 messages in 51 languages, and windows/languages/<Language>.nsh for the 17 NSIS languages Tauri does not ship (scripts/installer-languages.mjs writes and checks them).
This commit is contained in:
CRTkafa 2026-09-30 07:48:04 +00:00
parent 944cd68c22
commit cea3c6c7fb
70 changed files with 1979 additions and 50 deletions

View file

@ -0,0 +1,38 @@
// The Windows installer's words in English (`wb.installer.*`), the source of the framework
// catalogs (`waybetter/locales/<bcp47>.json`). They are Tauri's NSIS installer messages for the
// languages Tauri does not ship itself; `packages/waybetter/scripts/installer-languages.mjs` writes
// them as `windows/languages/<Language>.nsh`, which an app lists under `customLanguageFiles`.
// Placeholders: `{product}` the app's name, `{version}` its version, `{installed}` the installed
// version, `{error}` and `{code}` what the WebView2 setup reported.
export const INSTALLER_MESSAGES = {
'wb.installer.addOrReinstall': 'Add/Reinstall components',
'wb.installer.alreadyInstalled': 'Already Installed',
'wb.installer.alreadyInstalledLong': '{product} {version} is already installed. Select the operation you want to perform and click Next to continue.',
'wb.installer.appRunning': '{product} is running! Please close it first then try again.',
'wb.installer.appRunningOkKill': '{product} is running!\nClick OK to kill it',
'wb.installer.chooseMaintenanceOption': 'Choose the maintenance option to perform.',
'wb.installer.choowHowToInstall': 'Choose how you want to install {product}.',
'wb.installer.createDesktop': 'Create desktop shortcut',
'wb.installer.dontUninstall': 'Do not uninstall',
'wb.installer.dontUninstallDowngrade': 'Do not uninstall (Downgrading without uninstall is disabled for this installer)',
'wb.installer.failedToKillApp': 'Failed to kill {product}. Please close it first then try again',
'wb.installer.installingWebview2': 'Installing WebView2...',
'wb.installer.newerVersionInstalled': 'A newer version of {product} is already installed! It is not recommended that you install an older version. If you really want to install this older version, it\'s better to uninstall the current version first. Select the operation you want to perform and click Next to continue.',
'wb.installer.older': 'older',
'wb.installer.olderOrUnknownVersionInstalled': 'An {installed} version of {product} is installed on your system. It\'s recommended that you uninstall the current version before installing. Select the operation you want to perform and click Next to continue.',
'wb.installer.silentDowngrades': 'Downgrades are disabled for this installer, can\'t proceed with the silent installer, please use the graphical interface installer instead.\n',
'wb.installer.unableToUninstall': 'Unable to uninstall!',
'wb.installer.uninstallApp': 'Uninstall {product}',
'wb.installer.uninstallBeforeInstalling': 'Uninstall before installing',
'wb.installer.unknown': 'unknown',
'wb.installer.webview2AbortError': 'Failed to install WebView2! The app can\'t run without it. Try restarting the installer.',
'wb.installer.webview2DownloadError': 'Error: Downloading WebView2 Failed - {error}',
'wb.installer.webview2DownloadSuccess': 'WebView2 bootstrapper downloaded successfully',
'wb.installer.webview2Downloading': 'Downloading WebView2 bootstrapper...',
'wb.installer.webview2InstallError': 'Error: Installing WebView2 failed with exit code {code}',
'wb.installer.webview2InstallSuccess': 'WebView2 installed successfully',
'wb.installer.deleteAppData': 'Delete the application data',
} as const;
export type InstallerKey = keyof typeof INSTALLER_MESSAGES;