зеркало из https://github.com/Azure/BatchExplorer.git
Minor fixes and descriptive comments (#2786)
* Compile package translations for use in the portal * Remove unneeded strings
This commit is contained in:
Родитель
62e802fe96
Коммит
46a4111de2
|
@ -20,5 +20,5 @@ To build the localization translations for all languages besides English:
|
|||
* Run `npm run loc:build` to build the translations, move them to the package directories, and combine them altogether in one directory
|
||||
* Run `npm run build-translations` to build the full, compiled translations for the web and desktop packages
|
||||
|
||||
* `web/dev-server/resources/i18n` contains web translations (web + all packages)
|
||||
* `web/resources/i18n` contains web translations (web + all packages)
|
||||
* `desktop/resources/i18n` contains desktop translations (desktop + all packages)
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
"clean:build": "bux rmrf ./build",
|
||||
"clean:esm": "bux rmrf ./lib",
|
||||
"clean:cjs": "bux rmrf ./lib-cjs",
|
||||
"clean:generated": "bux rmrf ./src/ui-common/generated",
|
||||
"clean:generated": "bux rmrf ./src/generated",
|
||||
"test": "jest",
|
||||
"test:coverage": "jest --collect-coverage",
|
||||
"test:all": "npm run test:coverage",
|
||||
|
|
|
@ -16,6 +16,7 @@ const writeFile = promisify(fs.writeFile);
|
|||
const readFileAsync = promisify(fs.readFile);
|
||||
const writeFileAsync = promisify(fs.writeFile);
|
||||
|
||||
// Generate bundled translations for web and desktop directories
|
||||
export async function mergeAllTranslations(outputPath: string) {
|
||||
const currentDirectory = process.cwd();
|
||||
const rootDir = path.resolve(currentDirectory, "..");
|
||||
|
|
Загрузка…
Ссылка в новой задаче