Merge branch 'master' into feature-aopl-options
This commit is contained in:
commit
bdd8663fb3
|
@ -41,10 +41,40 @@ jobs:
|
||||||
echo "::set-output name=repo_url::$repo_url"
|
echo "::set-output name=repo_url::$repo_url"
|
||||||
echo "::set-output name=adj_build_number::$adj_build_num"
|
echo "::set-output name=adj_build_number::$adj_build_num"
|
||||||
|
|
||||||
|
locales-test:
|
||||||
browser:
|
runs-on: ubuntu-latest
|
||||||
runs-on: windows-latest
|
|
||||||
needs: setup
|
needs: setup
|
||||||
|
steps:
|
||||||
|
- name: Checkout repo
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Testing locales - extName length
|
||||||
|
run: |
|
||||||
|
found_error=false
|
||||||
|
|
||||||
|
echo "Locales Test"
|
||||||
|
echo "============"
|
||||||
|
echo "extName string must be 40 characters or less"
|
||||||
|
echo
|
||||||
|
for locale in $(ls src/_locales/); do
|
||||||
|
string_length=$(jq '.extName.message | length' src/_locales/$locale/messages.json)
|
||||||
|
if [[ $string_length -gt 40 ]]; then
|
||||||
|
echo "$locale: $string_length"
|
||||||
|
found_error=true
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
if $found_error; then
|
||||||
|
echo
|
||||||
|
echo "Please fix 'extName' for the locales listed above."
|
||||||
|
exit 1
|
||||||
|
else
|
||||||
|
echo "Test passed!"
|
||||||
|
fi
|
||||||
|
|
||||||
|
build:
|
||||||
|
runs-on: windows-latest
|
||||||
|
needs: [ setup, locales-test ]
|
||||||
env:
|
env:
|
||||||
REPO_URL: ${{ needs.setup.outputs.repo_url }}
|
REPO_URL: ${{ needs.setup.outputs.repo_url }}
|
||||||
BUILD_NUMBER: ${{ needs.setup.outputs.adj_build_number }}
|
BUILD_NUMBER: ${{ needs.setup.outputs.adj_build_number }}
|
||||||
|
|
|
@ -64,9 +64,40 @@ jobs:
|
||||||
prerelease: false
|
prerelease: false
|
||||||
|
|
||||||
|
|
||||||
browser:
|
locales-test:
|
||||||
runs-on: windows-latest
|
runs-on: ubuntu-latest
|
||||||
needs: setup
|
needs: setup
|
||||||
|
steps:
|
||||||
|
- name: Checkout repo
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Testing locales - extName length
|
||||||
|
run: |
|
||||||
|
found_error=false
|
||||||
|
|
||||||
|
echo "Locales Test"
|
||||||
|
echo "============"
|
||||||
|
echo "extName string must be 40 characters or less"
|
||||||
|
echo
|
||||||
|
for locale in $(ls src/_locales/); do
|
||||||
|
string_length=$(jq '.extName.message | length' src/_locales/$locale/messages.json)
|
||||||
|
if [[ $string_length -gt 40 ]]; then
|
||||||
|
echo "$locale: $string_length"
|
||||||
|
found_error=true
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
if $found_error; then
|
||||||
|
echo
|
||||||
|
echo "Please fix 'extName' for the locales listed above."
|
||||||
|
exit 1
|
||||||
|
else
|
||||||
|
echo "Test passed!"
|
||||||
|
fi
|
||||||
|
|
||||||
|
build:
|
||||||
|
runs-on: windows-latest
|
||||||
|
needs: [ setup, locales-test ]
|
||||||
env:
|
env:
|
||||||
REPO_URL: ${{ needs.setup.outputs.repo_url }}
|
REPO_URL: ${{ needs.setup.outputs.repo_url }}
|
||||||
BUILD_NUMBER: ${{ needs.setup.outputs.adj_build_number }}
|
BUILD_NUMBER: ${{ needs.setup.outputs.adj_build_number }}
|
||||||
|
|
|
@ -103,7 +103,7 @@ import localeIt from '@angular/common/locales/it';
|
||||||
import localeJa from '@angular/common/locales/ja';
|
import localeJa from '@angular/common/locales/ja';
|
||||||
import localeKo from '@angular/common/locales/ko';
|
import localeKo from '@angular/common/locales/ko';
|
||||||
import localeLv from '@angular/common/locales/lv';
|
import localeLv from '@angular/common/locales/lv';
|
||||||
import localeMlIn from '@angular/common/locales/ml-IN';
|
import localeMl from '@angular/common/locales/ml';
|
||||||
import localeNb from '@angular/common/locales/nb';
|
import localeNb from '@angular/common/locales/nb';
|
||||||
import localeNl from '@angular/common/locales/nl';
|
import localeNl from '@angular/common/locales/nl';
|
||||||
import localePl from '@angular/common/locales/pl';
|
import localePl from '@angular/common/locales/pl';
|
||||||
|
@ -144,7 +144,7 @@ registerLocaleData(localeIt, 'it');
|
||||||
registerLocaleData(localeJa, 'ja');
|
registerLocaleData(localeJa, 'ja');
|
||||||
registerLocaleData(localeKo, 'ko');
|
registerLocaleData(localeKo, 'ko');
|
||||||
registerLocaleData(localeLv, 'lv');
|
registerLocaleData(localeLv, 'lv');
|
||||||
registerLocaleData(localeMlIn, 'ml-IN');
|
registerLocaleData(localeMl, 'ml');
|
||||||
registerLocaleData(localeNb, 'nb');
|
registerLocaleData(localeNb, 'nb');
|
||||||
registerLocaleData(localeNl, 'nl');
|
registerLocaleData(localeNl, 'nl');
|
||||||
registerLocaleData(localePl, 'pl');
|
registerLocaleData(localePl, 'pl');
|
||||||
|
|
|
@ -10,7 +10,7 @@ export default class I18nService extends BaseI18nService {
|
||||||
|
|
||||||
this.supportedTranslationLocales = [
|
this.supportedTranslationLocales = [
|
||||||
'en', 'be', 'bg', 'bn', 'ca', 'cs', 'da', 'de', 'el', 'en-GB', 'en-IN', 'es', 'et', 'fa', 'fi', 'fr', 'he', 'hr', 'hu',
|
'en', 'be', 'bg', 'bn', 'ca', 'cs', 'da', 'de', 'el', 'en-GB', 'en-IN', 'es', 'et', 'fa', 'fi', 'fr', 'he', 'hr', 'hu',
|
||||||
'id', 'it', 'ja', 'ko', 'lv', 'ml-IN', 'nb', 'nl', 'pl', 'pt-BR', 'pt-PT', 'ro', 'ru', 'sk', 'sr', 'sv', 'th', 'tr', 'uk',
|
'id', 'it', 'ja', 'ko', 'lv', 'ml', 'nb', 'nl', 'pl', 'pt-BR', 'pt-PT', 'ro', 'ru', 'sk', 'sr', 'sv', 'th', 'tr', 'uk',
|
||||||
'vi', 'zh-CN', 'zh-TW',
|
'vi', 'zh-CN', 'zh-TW',
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue