From 6554cf51ccbce08c755b0a3b8a9e968771c3113d Mon Sep 17 00:00:00 2001 From: Michael Krog Date: Fri, 28 Dec 2018 07:32:51 +0100 Subject: [PATCH] fix(module:i18n): Danish locale is exported and mentioned in i18n docs --- components/i18n/public-api.ts | 1 + docs/i18n.en-US.md | 1 + docs/i18n.zh-CN.md | 1 + schematics/ng-add/schema.json | 2 +- schematics/ng-add/schema.ts | 10 +++++----- 5 files changed, 9 insertions(+), 6 deletions(-) diff --git a/components/i18n/public-api.ts b/components/i18n/public-api.ts index 0e170e497ba..5990443ad6b 100644 --- a/components/i18n/public-api.ts +++ b/components/i18n/public-api.ts @@ -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'; diff --git a/docs/i18n.en-US.md b/docs/i18n.en-US.md index 79530b6fdff..352f7ba574e 100755 --- a/docs/i18n.en-US.md +++ b/docs/i18n.en-US.md @@ -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| diff --git a/docs/i18n.zh-CN.md b/docs/i18n.zh-CN.md index 86962fb8d10..eb5cdaff841 100755 --- a/docs/i18n.zh-CN.md +++ b/docs/i18n.zh-CN.md @@ -59,6 +59,7 @@ switchLanguage() { |加泰罗尼亚语|ca_ES| |捷克语|cs_CZ| |德语|de_DE| +|丹麦|da_DK| |希腊语|el_GR| |英语|en_GB| |英语(美式)|en_US| diff --git a/schematics/ng-add/schema.json b/schematics/ng-add/schema.json index cfc875cf21c..9cc661adbc8 100644 --- a/schematics/ng-add/schema.json +++ b/schematics/ng-add/schema.json @@ -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": { diff --git a/schematics/ng-add/schema.ts b/schematics/ng-add/schema.ts index 86d56e41dcf..5d8ce845919 100644 --- a/schematics/ng-add/schema.ts +++ b/schematics/ng-add/schema.ts @@ -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. */