From 7ecec0b1f630cd20cb3e65a186d1dcd3c632f8c0 Mon Sep 17 00:00:00 2001 From: Collin Brown Date: Tue, 8 Sep 2020 18:31:22 -0400 Subject: [PATCH] Adding i18n folder with french/english example --- frontend/i18n/en/home.js | 3 +++ frontend/i18n/en/index.js | 5 +++++ frontend/i18n/fr/home.js | 3 +++ frontend/i18n/fr/index.js | 5 +++++ frontend/i18n/index.js | 22 ++++++++++++++++++++++ 5 files changed, 38 insertions(+) create mode 100644 frontend/i18n/en/home.js create mode 100644 frontend/i18n/en/index.js create mode 100644 frontend/i18n/fr/home.js create mode 100644 frontend/i18n/fr/index.js create mode 100644 frontend/i18n/index.js diff --git a/frontend/i18n/en/home.js b/frontend/i18n/en/home.js new file mode 100644 index 00000000..636318f7 --- /dev/null +++ b/frontend/i18n/en/home.js @@ -0,0 +1,3 @@ +export default { + welcome: 'Welcome to Doccano!' +} diff --git a/frontend/i18n/en/index.js b/frontend/i18n/en/index.js new file mode 100644 index 00000000..75939b7b --- /dev/null +++ b/frontend/i18n/en/index.js @@ -0,0 +1,5 @@ +import home from './home' + +export default { + home +} diff --git a/frontend/i18n/fr/home.js b/frontend/i18n/fr/home.js new file mode 100644 index 00000000..fef1e8d6 --- /dev/null +++ b/frontend/i18n/fr/home.js @@ -0,0 +1,3 @@ +export default { + welcome: 'Bienvenue au doccano!' +} diff --git a/frontend/i18n/fr/index.js b/frontend/i18n/fr/index.js new file mode 100644 index 00000000..75939b7b --- /dev/null +++ b/frontend/i18n/fr/index.js @@ -0,0 +1,5 @@ +import home from './home' + +export default { + home +} diff --git a/frontend/i18n/index.js b/frontend/i18n/index.js new file mode 100644 index 00000000..f5d6456d --- /dev/null +++ b/frontend/i18n/index.js @@ -0,0 +1,22 @@ +export default { + locales: [ + { + name: 'English', + code: 'en', + iso: 'en-CA', + file: 'en' + }, + { + name: 'Français', + code: 'fr', + iso: 'fr-CA', + file: 'fr' + } + ], + lazy: true, + langDir: 'i18n/', + defaultLocale: 'en', + vueI18n: { + fallbackLocale: 'en' + } +}