From d698cb4dca7d8f85f50b52c0b1111c462508ce1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Chopin?= Date: Fri, 10 Feb 2017 00:45:36 +0100 Subject: [PATCH] Update i18n example --- examples/i18n/layouts/default.vue | 8 ++++---- examples/i18n/pages/_lang/about.vue | 3 ++- examples/i18n/pages/_lang/index.vue | 4 ++-- examples/i18n/static/locales/en.json | 18 ++++++++++++------ examples/i18n/static/locales/fr.json | 18 ++++++++++++------ 5 files changed, 32 insertions(+), 19 deletions(-) diff --git a/examples/i18n/layouts/default.vue b/examples/i18n/layouts/default.vue index bf2356e5a0..8ddf82e2da 100644 --- a/examples/i18n/layouts/default.vue +++ b/examples/i18n/layouts/default.vue @@ -5,16 +5,16 @@

Nuxt i18n

diff --git a/examples/i18n/pages/_lang/about.vue b/examples/i18n/pages/_lang/about.vue index 3ffc6e6631..9b3e526674 100644 --- a/examples/i18n/pages/_lang/about.vue +++ b/examples/i18n/pages/_lang/about.vue @@ -1,7 +1,8 @@ diff --git a/examples/i18n/pages/_lang/index.vue b/examples/i18n/pages/_lang/index.vue index e0c6f47071..0ee45a5ca2 100644 --- a/examples/i18n/pages/_lang/index.vue +++ b/examples/i18n/pages/_lang/index.vue @@ -1,8 +1,8 @@ diff --git a/examples/i18n/static/locales/en.json b/examples/i18n/static/locales/en.json index 6252c2b04b..898218c0a0 100644 --- a/examples/i18n/static/locales/en.json +++ b/examples/i18n/static/locales/en.json @@ -1,10 +1,16 @@ { - "message": { - "english": "English version", - "french": "French version", - "welcome": "Welcome", - "introduction": "This is an introduction in English.", + "links": { "home": "Home", - "about": "About" + "about": "About", + "english": "English version", + "french": "French version" + }, + "home": { + "title": "Welcome", + "introduction": "This is an introduction in English." + }, + "about": { + "title": "About", + "introduction": "This page is made to give you more informations." } } diff --git a/examples/i18n/static/locales/fr.json b/examples/i18n/static/locales/fr.json index acc94ac28d..b4e96aeb96 100644 --- a/examples/i18n/static/locales/fr.json +++ b/examples/i18n/static/locales/fr.json @@ -1,10 +1,16 @@ { - "message": { - "english": "Version Anglaise", - "french": "Version Française", - "welcome": "Bienvenue", - "introduction": "Ceci est un texte d'introduction en Français.", + "links": { "home": "Accueil", - "about": "À propos" + "about": "À propos", + "english": "Version Anglaise", + "french": "Version Française" + }, + "home": { + "title": "Bienvenue", + "introduction": "Ceci est un texte d'introduction en Français." + }, + "about": { + "title": "À propos", + "introduction": "Cette page est faite pour vous donner plus d'informations." } }