"projects": {
"ceph-dashboard": {
"i18n": {
+ "sourceLocale": { "code": "en", "baseHref": "" },
"locales": {
- "cs": {
- "translation": "src/locale/messages.cs.xlf",
- "baseHref": ""
- },
- "de-DE": {
- "translation": "src/locale/messages.de-DE.xlf",
- "baseHref": ""
- },
- "en-US": {
- "translation": "src/locale/messages.en-US.xlf",
- "baseHref": ""
- },
- "es-ES": {
- "translation": "src/locale/messages.es-ES.xlf",
- "baseHref": ""
- },
- "fr-FR": {
- "translation": "src/locale/messages.fr-FR.xlf",
- "baseHref": ""
- },
- "id-ID": {
- "translation": "src/locale/messages.id-ID.xlf",
- "baseHref": ""
- },
- "it-IT": {
- "translation": "src/locale/messages.it-IT.xlf",
- "baseHref": ""
- },
- "ja-JP": {
- "translation": "src/locale/messages.ja-JP.xlf",
- "baseHref": ""
- },
- "ko-KR": {
- "translation": "src/locale/messages.ko-KR.xlf",
- "baseHref": ""
- },
- "pl-PL": {
- "translation": "src/locale/messages.pl-PL.xlf",
- "baseHref": ""
- },
- "pt-BR": {
- "translation": "src/locale/messages.pt-BR.xlf",
- "baseHref": ""
- },
- "zh-CN": {
- "translation": "src/locale/messages.zh-CN.xlf",
- "baseHref": ""
- },
- "zh-TW": {
- "translation": "src/locale/messages.zh-TW.xlf",
- "baseHref": ""
- }
+ "cs": { "translation": "src/locale/messages.cs.xlf", "baseHref": "" },
+ "de": { "translation": "src/locale/messages.de-DE.xlf", "baseHref": "" },
+ "es": { "translation": "src/locale/messages.es-ES.xlf", "baseHref": "" },
+ "fr": { "translation": "src/locale/messages.fr-FR.xlf", "baseHref": "" },
+ "id": { "translation": "src/locale/messages.id-ID.xlf", "baseHref": "" },
+ "it": { "translation": "src/locale/messages.it-IT.xlf", "baseHref": "" },
+ "ja": { "translation": "src/locale/messages.ja-JP.xlf", "baseHref": "" },
+ "ko": { "translation": "src/locale/messages.ko-KR.xlf", "baseHref": "" },
+ "pl": { "translation": "src/locale/messages.pl-PL.xlf", "baseHref": "" },
+ "pt": { "translation": "src/locale/messages.pt-BR.xlf", "baseHref": "" },
+ "zh-Hans": { "translation": "src/locale/messages.zh-CN.xlf", "baseHref": "" },
+ "zh-Hant": { "translation": "src/locale/messages.zh-TW.xlf", "baseHref": "" }
}
},
"root": "",
"main": "src/main.ts",
"tsConfig": "src/tsconfig.app.json",
"polyfills": "src/polyfills.ts",
+ "deleteOutputPath": false,
"assets": [
"src/assets",
"src/favicon.ico",
]
},
"cs": {
- "budgets": [
- {
- "type": "anyComponentStyle",
- "maximumWarning": "6kb"
- }
- ],
- "localize": [
- "cs"
- ],
- "outputPath": "dist"
+ "localize": ["cs"]
},
"de-DE": {
- "budgets": [
- {
- "type": "anyComponentStyle",
- "maximumWarning": "6kb"
- }
- ],
- "localize": [
- "de-DE"
- ],
- "outputPath": "dist"
+ "localize": ["de"]
},
"en-US": {
- "budgets": [
- {
- "type": "anyComponentStyle",
- "maximumWarning": "6kb"
- }
- ],
- "localize": [
- "en-US"
- ],
- "outputPath": "dist"
+ "localize": ["en"]
},
"es-ES": {
- "budgets": [
- {
- "type": "anyComponentStyle",
- "maximumWarning": "6kb"
- }
- ],
- "localize": [
- "es-ES"
- ],
- "outputPath": "dist"
+ "localize": ["es"]
},
"fr-FR": {
- "budgets": [
- {
- "type": "anyComponentStyle",
- "maximumWarning": "6kb"
- }
- ],
- "localize": [
- "fr-FR"
- ],
- "outputPath": "dist"
+ "localize": ["fr"]
},
"id-ID": {
- "budgets": [
- {
- "type": "anyComponentStyle",
- "maximumWarning": "6kb"
- }
- ],
- "localize": [
- "id-ID"
- ],
- "outputPath": "dist"
+ "localize": ["id"]
},
"it-IT": {
- "budgets": [
- {
- "type": "anyComponentStyle",
- "maximumWarning": "6kb"
- }
- ],
- "localize": [
- "it-IT"
- ],
- "outputPath": "dist"
+ "localize": ["it"]
},
"ja-JP": {
- "budgets": [
- {
- "type": "anyComponentStyle",
- "maximumWarning": "6kb"
- }
- ],
- "localize": [
- "ja-JP"
- ],
- "outputPath": "dist"
+ "localize": ["ja"]
},
"ko-KR": {
- "budgets": [
- {
- "type": "anyComponentStyle",
- "maximumWarning": "6kb"
- }
- ],
- "localize": [
- "ko-KR"
- ],
- "outputPath": "dist"
+ "localize": ["ko"]
},
"pl-PL": {
- "budgets": [
- {
- "type": "anyComponentStyle",
- "maximumWarning": "6kb"
- }
- ],
- "localize": [
- "pl-PL"
- ],
- "outputPath": "dist"
+ "localize": ["pl"]
},
"pt-BR": {
- "budgets": [
- {
- "type": "anyComponentStyle",
- "maximumWarning": "6kb"
- }
- ],
- "localize": [
- "pt-BR"
- ],
- "outputPath": "dist"
+ "localize": ["pt"]
},
"zh-CN": {
- "budgets": [
- {
- "type": "anyComponentStyle",
- "maximumWarning": "6kb"
- }
- ],
- "localize": [
- "zh-CN"
- ],
- "outputPath": "dist"
+ "localize": ["zh-Hans"]
},
"zh-TW": {
- "budgets": [
- {
- "type": "anyComponentStyle",
- "maximumWarning": "6kb"
- }
- ],
- "localize": [
- "zh-TW"
- ],
- "outputPath": "dist"
+ "localize": ["zh-Hant"]
}
}
},
"cs": {
"browserTarget": "ceph-dashboard:build:cs"
},
- "de-DE": {
- "browserTarget": "ceph-dashboard:build:de-DE"
+ "de": {
+ "browserTarget": "ceph-dashboard:build:de"
},
- "en-US": {
- "browserTarget": "ceph-dashboard:build:en-US"
+ "en": {
+ "browserTarget": "ceph-dashboard:build:en"
},
- "es-ES": {
- "browserTarget": "ceph-dashboard:build:es-ES"
+ "es": {
+ "browserTarget": "ceph-dashboard:build:es"
},
- "fr-FR": {
- "browserTarget": "ceph-dashboard:build:fr-FR"
+ "fr": {
+ "browserTarget": "ceph-dashboard:build:fr"
},
- "id-ID": {
- "browserTarget": "ceph-dashboard:build:id-ID"
+ "id": {
+ "browserTarget": "ceph-dashboard:build:id"
},
- "it-IT": {
- "browserTarget": "ceph-dashboard:build:it-IT"
+ "it": {
+ "browserTarget": "ceph-dashboard:build:it"
},
- "ja-JP": {
- "browserTarget": "ceph-dashboard:build:ja-JP"
+ "ja": {
+ "browserTarget": "ceph-dashboard:build:ja"
},
- "ko-KR": {
- "browserTarget": "ceph-dashboard:build:ko-KR"
+ "ko": {
+ "browserTarget": "ceph-dashboard:build:ko"
},
- "pl-PL": {
- "browserTarget": "ceph-dashboard:build:pl-PL"
+ "pl": {
+ "browserTarget": "ceph-dashboard:build:pl"
},
- "pt-BR": {
- "browserTarget": "ceph-dashboard:build:pt-BR"
+ "pt": {
+ "browserTarget": "ceph-dashboard:build:pt"
},
"zh-CN": {
"browserTarget": "ceph-dashboard:build:zh-CN"
"cli": {
"analytics": false
}
-}
\ No newline at end of file
+}
"scripts": {
"ng": "ng",
"start": "npm run env_build && ng serve --host 0.0.0.0",
- "build": "export _locale=${LOCALE:-$npm_package_config_locale}; if [ ${_locale} = $npm_package_config_locale ]; then export _file=; else export _file=src/locale/messages.${_locale}.xlf; fi; ng build --outputPath=dist/${_locale} --i18nFile=${_file} --i18nLocale=${_locale}",
+ "build": "export _locale=${LOCALE:-$npm_package_config_locale}; ng build --configuration=${_locale}",
"prebuild": "npm run env_build",
"build:cs": "LOCALE=cs npm run build",
"build:de-DE": "LOCALE=de-DE npm run build",
"build:zh-TW": "LOCALE=zh-TW npm run build",
"env_build": "cp src/environments/environment.tpl.ts src/environments/environment.prod.ts && cp src/environments/environment.tpl.ts src/environments/environment.ts && node ./environment.build.js",
"i18n": "npm run i18n:extract && npm run i18n:push && npm run i18n:pull && npm run i18n:merge",
- "i18n:extract": "ng xi18n --i18n-format xlf --i18n-locale en-US --output-path locale --progress=false && ngx-extractor -i 'src/**/*.ts' -f xlf -o src/locale/messages.xlf -l en-US",
+ "i18n:extract": "ng xi18n --output-path locale --progress=false && ngx-extractor -i 'src/**/*.ts' -f xlf -o src/locale/messages.xlf -l en-US",
"i18n:push": "npx i18ntool push -c i18n.config.json",
"i18n:pull": "npx i18ntool pull -c i18n.config.json",
"i18n:merge": "npx i18ntool merge -c i18n.config.json",
expectLanguageChange('cs');
});
- it('should change to de-DE', () => {
- expectLanguageChange('de-DE');
+ it('should change to de', () => {
+ expectLanguageChange('de');
});
- it('should change to es-ES', () => {
- expectLanguageChange('es-ES');
+ it('should change to es', () => {
+ expectLanguageChange('es');
});
- it('should change to fr-FR', () => {
- expectLanguageChange('fr-FR');
+ it('should change to fr', () => {
+ expectLanguageChange('fr');
});
- it('should change to id-ID', () => {
- expectLanguageChange('id-ID');
+ it('should change to id', () => {
+ expectLanguageChange('id');
});
- it('should change to it-IT', () => {
- expectLanguageChange('it-IT');
+ it('should change to it', () => {
+ expectLanguageChange('it');
});
- it('should change to ja-JP', () => {
- expectLanguageChange('ja-JP');
+ it('should change to ja', () => {
+ expectLanguageChange('ja');
});
- it('should change to ko-KR', () => {
- expectLanguageChange('ko-KR');
+ it('should change to ko', () => {
+ expectLanguageChange('ko');
});
- it('should change to pl-PL', () => {
- expectLanguageChange('pl-PL');
+ it('should change to pl', () => {
+ expectLanguageChange('pl');
});
- it('should change to pt-BR', () => {
- expectLanguageChange('pt-BR');
+ it('should change to pt', () => {
+ expectLanguageChange('pt');
});
- it('should change to zh-CN', () => {
- expectLanguageChange('zh-CN');
+ it('should change to zh-Hans', () => {
+ expectLanguageChange('zh-Hans');
});
- it('should change to zh-TW', () => {
- expectLanguageChange('zh-TW');
+ it('should change to zh-Hant', () => {
+ expectLanguageChange('zh-Hant');
});
});