Browse Source

Adding i18n folder with french/english example

pull/976/head
Collin Brown 4 years ago
parent
commit
7ecec0b1f6
5 changed files with 38 additions and 0 deletions
  1. 3
      frontend/i18n/en/home.js
  2. 5
      frontend/i18n/en/index.js
  3. 3
      frontend/i18n/fr/home.js
  4. 5
      frontend/i18n/fr/index.js
  5. 22
      frontend/i18n/index.js

3
frontend/i18n/en/home.js

@ -0,0 +1,3 @@
export default {
welcome: 'Welcome to Doccano!'
}

5
frontend/i18n/en/index.js

@ -0,0 +1,5 @@
import home from './home'
export default {
home
}

3
frontend/i18n/fr/home.js

@ -0,0 +1,3 @@
export default {
welcome: 'Bienvenue au doccano!'
}

5
frontend/i18n/fr/index.js

@ -0,0 +1,5 @@
import home from './home'
export default {
home
}

22
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'
}
}
Loading…
Cancel
Save