From b7344222e863f756c1645d43c472b30ef3b71f92 Mon Sep 17 00:00:00 2001 From: iamkun Date: Sat, 2 Feb 2019 16:37:53 +0800 Subject: [PATCH] docs: add how to get back to english doc fix #310 --- docs/en/I18n.md | 1 + docs/es-es/I18n.md | 1 + docs/ja/I18n.md | 1 + docs/ko/I18n.md | 1 + docs/pt-br/I18n.md | 1 + docs/zh-cn/I18n.md | 1 + 6 files changed, 6 insertions(+) diff --git a/docs/en/I18n.md b/docs/en/I18n.md index 417ebe0b1..0e04268b8 100644 --- a/docs/en/I18n.md +++ b/docs/en/I18n.md @@ -25,6 +25,7 @@ dayjs.locale('es') // use loaded locale globally dayjs.locale('de-german', de) // use locale and update default name string const customizedLocaleObject = { ... } // More details can be found in Customize section below. dayjs.locale(customizedLocaleObject) // use customize locale +dayjs.locale('en') // switch back to default English locale globally ``` * Changing the global locale doesn't affect existing instances. diff --git a/docs/es-es/I18n.md b/docs/es-es/I18n.md index 227408370..c8de28101 100644 --- a/docs/es-es/I18n.md +++ b/docs/es-es/I18n.md @@ -28,6 +28,7 @@ dayjs.locale('de-german', de) const customizedLocaleObject = { ... } // uso de la configuración regional personalizada dayjs.locale(customizedLocaleObject) +dayjs.locale('en') // switch back to default English locale globally ``` * Cambiar la configuración regional global no afecta a las instancias ya existentes. diff --git a/docs/ja/I18n.md b/docs/ja/I18n.md index 809ba672f..4110f1f95 100644 --- a/docs/ja/I18n.md +++ b/docs/ja/I18n.md @@ -25,6 +25,7 @@ dayjs.locale('es') // 読み込んだロケールをグローバルに適用 dayjs.locale('de-german', de) // ロケールを使用し、デフォルトの名前文字列を更新 const customizedLocaleObject = { ... } // 詳細は、以下のカスタマイズの項を参照 dayjs.locale(customizedLocaleObject) // カスタムロケールを適用 +dayjs.locale('en') // switch back to default English locale globally ``` * グローバルロケールを変更しても、既存のインスタンスには影響しません。 diff --git a/docs/ko/I18n.md b/docs/ko/I18n.md index fef40a6ee..17cacfb46 100644 --- a/docs/ko/I18n.md +++ b/docs/ko/I18n.md @@ -25,6 +25,7 @@ dayjs.locale('es') // 글로벌 하게 locale을 로드하여 사용합니다. dayjs.locale('de-german', de) // locale 사용 및 기본 이름 문자열 업데이트 const customizedLocaleObject = { ... } // 자세한 내용은 아래 커스텀 설정 섹션을 참조하세요. dayjs.locale(customizedLocaleObject) // 커스텀 locale 사용 +dayjs.locale('en') // switch back to default English locale globally ``` * 글로벌 locale을 변경해도 기존 인스턴스에는 영향을 주지 않습니다. diff --git a/docs/pt-br/I18n.md b/docs/pt-br/I18n.md index a0b8fbd29..b6c4f23fe 100644 --- a/docs/pt-br/I18n.md +++ b/docs/pt-br/I18n.md @@ -25,6 +25,7 @@ dayjs.locale('es') // usar o locale es globalmente dayjs.locale('de-german', de) // usar o locale de e alterar a string padrão const customizedLocaleObject = { ... } // mais detalhes podem ser vistos na sessão de customização abaixo dayjs.locale(customizedLocaleObject) // usar locale customizado +dayjs.locale('en') // switch back to default English locale globally ``` * Mudar o *locale* global não afeta instâncias já existentes. diff --git a/docs/zh-cn/I18n.md b/docs/zh-cn/I18n.md index e71833831..e95566e37 100644 --- a/docs/zh-cn/I18n.md +++ b/docs/zh-cn/I18n.md @@ -25,6 +25,7 @@ dayjs.locale('zh-cn') // 全局使用简体中文 dayjs.locale('de-german', de) // 使用并更新语言包的名字 const customizedLocaleObject = { ... } // 更多细节请参考下方的自定义语言对象 dayjs.locale(customizedLocaleObject) // 使用自定义语言 +dayjs.locale('en') // 全局使用默认的英语语言 ``` * 改变全局语言并不会影响在此之前生成的实例