From ae83e06c7cd8bf827f9b3fc27d92e2a9ee062e96 Mon Sep 17 00:00:00 2001 From: David Smith Date: Thu, 16 Mar 2017 12:59:42 +0000 Subject: [PATCH] After changing some default messages and `riw app translate` --- src/components/App.js | 4 ++-- src/components/Text.js | 2 +- src/locale/TODO-untranslated.json | 28 ++++++++++++++++++++++++++-- src/locale/en-GB.json | 6 +++--- src/locale/pt-BR.json | 2 -- src/locale/xx-en-reverse.json | 2 -- 6 files changed, 32 insertions(+), 12 deletions(-) diff --git a/src/components/App.js b/src/components/App.js index 19826a0..b08b71d 100644 --- a/src/components/App.js +++ b/src/components/App.js @@ -8,11 +8,11 @@ import FileCounter from './FileCounter'; const msg = defineMessages({ hello: { id: 'App.welcome', - defaultMessage: 'Hello world!', + defaultMessage: 'Hello everyone!', }, goodbye: { id: 'App.farewell', - defaultMessage: 'The end', + defaultMessage: 'Goodbye', }, }); diff --git a/src/components/Text.js b/src/components/Text.js index a88c408..9ba9f1a 100644 --- a/src/components/Text.js +++ b/src/components/Text.js @@ -6,7 +6,7 @@ import FileCounter from './FileCounter'; const msg = defineMessages({ intro: { id: 'Text.intro', - defaultMessage: 'This is some boring text related to {name}.', + defaultMessage: 'This is some interesting text related to {name}.', }, thanks: { id: 'Text.thanks', diff --git a/src/locale/TODO-untranslated.json b/src/locale/TODO-untranslated.json index 56ca0d4..f1ea800 100644 --- a/src/locale/TODO-untranslated.json +++ b/src/locale/TODO-untranslated.json @@ -1,4 +1,28 @@ [ + { + "id": "App.welcome", + "defaultMessage": "Hello everyone!", + "file": "/Users/dave/git-repos/riw-example/src/components/App.js", + "locale": "pt-BR" + }, + { + "id": "App.welcome", + "defaultMessage": "Hello everyone!", + "file": "/Users/dave/git-repos/riw-example/src/components/App.js", + "locale": "xx-en-reverse" + }, + { + "id": "App.farewell", + "defaultMessage": "Goodbye", + "file": "/Users/dave/git-repos/riw-example/src/components/App.js", + "locale": "pt-BR" + }, + { + "id": "App.farewell", + "defaultMessage": "Goodbye", + "file": "/Users/dave/git-repos/riw-example/src/components/App.js", + "locale": "xx-en-reverse" + }, { "id": "Buttons.press", "description": "User presses button to take an action", @@ -29,13 +53,13 @@ }, { "id": "Text.intro", - "defaultMessage": "This is some boring text related to {name}.", + "defaultMessage": "This is some interesting text related to {name}.", "file": "/Users/dave/git-repos/riw-example/src/components/Text.js", "locale": "pt-BR" }, { "id": "Text.intro", - "defaultMessage": "This is some boring text related to {name}.", + "defaultMessage": "This is some interesting text related to {name}.", "file": "/Users/dave/git-repos/riw-example/src/components/Text.js", "locale": "xx-en-reverse" }, diff --git a/src/locale/en-GB.json b/src/locale/en-GB.json index a4bb34f..4709acd 100644 --- a/src/locale/en-GB.json +++ b/src/locale/en-GB.json @@ -1,9 +1,9 @@ { - "App.welcome": "Hello world!", - "App.farewell": "The end", + "App.welcome": "Hello everyone!", + "App.farewell": "Goodbye", "Buttons.press": "Press me", "Buttons.cancel": "Cancel", "FileCounter.label": "You have {numFiles, plural, =0 {no files} one {one file} other {# files}}", - "Text.intro": "This is some boring text related to {name}.", + "Text.intro": "This is some interesting text related to {name}.", "Text.thanks": "Thank you." } \ No newline at end of file diff --git a/src/locale/pt-BR.json b/src/locale/pt-BR.json index 585b1da..bfa31f2 100644 --- a/src/locale/pt-BR.json +++ b/src/locale/pt-BR.json @@ -1,5 +1,3 @@ { - "App.welcome": "Olá Mundo!", - "App.farewell": "O fim", "FileCounter.label": "Você {numFiles, plural, =0 {não tem arquivos} one {tem um arquivo} other {tem # arquivos}}" } \ No newline at end of file diff --git a/src/locale/xx-en-reverse.json b/src/locale/xx-en-reverse.json index b4af86c..8b81991 100644 --- a/src/locale/xx-en-reverse.json +++ b/src/locale/xx-en-reverse.json @@ -1,5 +1,3 @@ { - "App.welcome": "!dlrow olleH", - "App.farewell": "dne ehT", "FileCounter.label": "{numFiles, plural, =0 {selif on} one {elif eno} other {selif #}} evah uoT" } \ No newline at end of file