Skip to content

Commit

Permalink
fix(module:i18n): Danish locale is exported and mentioned in i18n docs
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelkrog authored and vthinkxie committed Dec 28, 2018
1 parent d0ee5ad commit 6554cf5
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
1 change: 1 addition & 0 deletions components/i18n/public-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export { default as ar_EG } from './languages/ar_EG';
export { default as bg_BG } from './languages/bg_BG';
export { default as ca_ES } from './languages/ca_ES';
export { default as cs_CZ } from './languages/cs_CZ';
export { default as da_DK } from './languages/da_DK';
export { default as de_DE } from './languages/de_DE';
export { default as el_GR } from './languages/el_GR';
export { default as en_GB } from './languages/en_GB';
Expand Down
1 change: 1 addition & 0 deletions docs/i18n.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ Supported languages:
|Bulgarian|bg_BG|
|Catalan|ca_ES|
|Czech|cs_CZ|
|Danish|da_DK|
|German|de_DE|
|Greek|el_GR|
|English (Global)|en_GB|
Expand Down
1 change: 1 addition & 0 deletions docs/i18n.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ switchLanguage() {
|加泰罗尼亚语|ca_ES|
|捷克语|cs_CZ|
|德语|de_DE|
|丹麦|da_DK|
|希腊语|el_GR|
|英语|en_GB|
|英语(美式)|en_US|
Expand Down
2 changes: 1 addition & 1 deletion schematics/ng-add/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"i18n": {
"type": "string",
"default": "en_US",
"enum": ["ar_EG","bg_BG","ca_ES","cs_CZ","de_DE","el_GR","en_GB","en_US","es_ES","et_EE","fa_IR","fi_FI","fr_BE","fr_FR","is_IS","it_IT","ja_JP","ko_KR","nb_NO","nl_BE","nl_NL","pl_PL","pt_BR","pt_PT","sk_SK","sr_RS","sv_SE","th_TH","tr_TR","ru_RU","uk_UA","vi_VN","zh_CN","zh_TW"],
"enum": ["ar_EG","bg_BG","ca_ES","cs_CZ","da_DK","de_DE","el_GR","en_GB","en_US","es_ES","et_EE","fa_IR","fi_FI","fr_BE","fr_FR","is_IS","it_IT","ja_JP","ko_KR","nb_NO","nl_BE","nl_NL","pl_PL","pt_BR","pt_PT","sk_SK","sr_RS","sv_SE","th_TH","tr_TR","ru_RU","uk_UA","vi_VN","zh_CN","zh_TW"],
"description": "add locale code to module (e.g., --locale=en_US)"
},
"locale": {
Expand Down
10 changes: 5 additions & 5 deletions schematics/ng-add/schema.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@

export type Locale = 'ar_EG' | 'bg_BG' | 'ca_ES' | 'cs_CZ' | 'de_DE' | 'el_GR' | 'en_GB'
| 'en_US' | 'es_ES' | 'et_EE' | 'fa_IR' | 'fi_FI' | 'fr_BE' | 'fr_FR' | 'is_IS'
| 'it_IT' | 'ja_JP' | 'ko_KR' | 'nb_NO' | 'nl_BE' | 'nl_NL' | 'pl_PL' | 'pt_BR'
| 'pt_PT' | 'sk_SK' | 'sr_RS' | 'sv_SE' | 'th_TH' | 'tr_TR' | 'ru_RU' | 'uk_UA'
| 'vi_VN' | 'zh_CN' | 'zh_TW';
export type Locale = 'ar_EG' | 'bg_BG' | 'ca_ES' | 'cs_CZ' | 'da_DK' | 'de_DE' | 'el_GR'
| 'en_GB' | 'en_US' | 'es_ES' | 'et_EE' | 'fa_IR' | 'fi_FI' | 'fr_BE' | 'fr_FR'
| 'is_IS' | 'it_IT' | 'ja_JP' | 'ko_KR' | 'nb_NO' | 'nl_BE' | 'nl_NL' | 'pl_PL'
| 'pt_BR' | 'pt_PT' | 'sk_SK' | 'sr_RS' | 'sv_SE' | 'th_TH' | 'tr_TR' | 'ru_RU'
| 'uk_UA' | 'vi_VN' | 'zh_CN' | 'zh_TW';

export interface Schema {
/** Name of the project to target. */
Expand Down

0 comments on commit 6554cf5

Please sign in to comment.