From f75368455c11fe249946086099148ffae44b5865 Mon Sep 17 00:00:00 2001 From: Kelly Selden Date: Sat, 16 Jan 2016 16:23:54 -0500 Subject: [PATCH] more fixture data --- test/fixtures/i18n.csv | 16 +++++++------ .../en-us/translations.js | 4 ++++ .../nl-nl/translations.js | 4 ++++ .../pt-br/translations.js | 24 +++++++++++++++++++ test/fixtures/locales/en-us/translations.js | 4 ++++ test/fixtures/locales/nl-nl/translations.js | 4 ++++ test/fixtures/locales/pt-br/translations.js | 20 ++++++++++++++++ 7 files changed, 69 insertions(+), 7 deletions(-) create mode 100644 test/fixtures/locales-jshint-ignore/pt-br/translations.js create mode 100644 test/fixtures/locales/pt-br/translations.js diff --git a/test/fixtures/i18n.csv b/test/fixtures/i18n.csv index 104dee7..e2faad5 100644 --- a/test/fixtures/i18n.csv +++ b/test/fixtures/i18n.csv @@ -1,7 +1,9 @@ -key,en-us,nl-nl -node1.node1-1,Industries,Industrieën -node1.node1-2.node1-2-1,test,test -node1.node1-2.node1-2-2,test,test -node2.node2-1,test,test -node2.node2-2.node2-2-1,test,test -node2.node2-2.node2-2-2,test,test +key,en-us,nl-nl,pt-br +node1.node1-1,Industries,Industrieën,Indústrias +node1.node1-2.node1-2-1,test,test,test +node1.node1-2.node1-2-2,test,test,test +node2.node2-1,test,test,test +node2.node2-2.node2-2-1,test,test,test +node2.node2-2.node2-2-2,test,test,test +weekday.tuesday,Tuesday,Dinsdag,Terça +weekday.saturday,Saturday,Zaterdag,Sábado diff --git a/test/fixtures/locales-jshint-ignore/en-us/translations.js b/test/fixtures/locales-jshint-ignore/en-us/translations.js index d54a554..34fa365 100644 --- a/test/fixtures/locales-jshint-ignore/en-us/translations.js +++ b/test/fixtures/locales-jshint-ignore/en-us/translations.js @@ -14,6 +14,10 @@ export default { "node2-2-1": "test", "node2-2-2": "test" } + }, + "weekday": { + "tuesday": "Tuesday", + "saturday": "Saturday" } }; diff --git a/test/fixtures/locales-jshint-ignore/nl-nl/translations.js b/test/fixtures/locales-jshint-ignore/nl-nl/translations.js index 207b3be..9c1879f 100644 --- a/test/fixtures/locales-jshint-ignore/nl-nl/translations.js +++ b/test/fixtures/locales-jshint-ignore/nl-nl/translations.js @@ -14,6 +14,10 @@ export default { "node2-2-1": "test", "node2-2-2": "test" } + }, + "weekday": { + "tuesday": "Dinsdag", + "saturday": "Zaterdag" } }; diff --git a/test/fixtures/locales-jshint-ignore/pt-br/translations.js b/test/fixtures/locales-jshint-ignore/pt-br/translations.js new file mode 100644 index 0000000..3717898 --- /dev/null +++ b/test/fixtures/locales-jshint-ignore/pt-br/translations.js @@ -0,0 +1,24 @@ +/* jshint ignore:start */ + +export default { + "node1": { + "node1-1": "Indústrias", + "node1-2": { + "node1-2-1": "test", + "node1-2-2": "test" + } + }, + "node2": { + "node2-1": "test", + "node2-2": { + "node2-2-1": "test", + "node2-2-2": "test" + } + }, + "weekday": { + "tuesday": "Terça", + "saturday": "Sábado" + } +}; + +/* jshint ignore:end */ diff --git a/test/fixtures/locales/en-us/translations.js b/test/fixtures/locales/en-us/translations.js index 83e595f..6e021e1 100644 --- a/test/fixtures/locales/en-us/translations.js +++ b/test/fixtures/locales/en-us/translations.js @@ -12,5 +12,9 @@ export default { "node2-2-1": "test", "node2-2-2": "test" } + }, + "weekday": { + "tuesday": "Tuesday", + "saturday": "Saturday" } }; diff --git a/test/fixtures/locales/nl-nl/translations.js b/test/fixtures/locales/nl-nl/translations.js index e065996..bab61a9 100644 --- a/test/fixtures/locales/nl-nl/translations.js +++ b/test/fixtures/locales/nl-nl/translations.js @@ -12,5 +12,9 @@ export default { "node2-2-1": "test", "node2-2-2": "test" } + }, + "weekday": { + "tuesday": "Dinsdag", + "saturday": "Zaterdag" } }; diff --git a/test/fixtures/locales/pt-br/translations.js b/test/fixtures/locales/pt-br/translations.js new file mode 100644 index 0000000..316267a --- /dev/null +++ b/test/fixtures/locales/pt-br/translations.js @@ -0,0 +1,20 @@ +export default { + "node1": { + "node1-1": "Indústrias", + "node1-2": { + "node1-2-1": "test", + "node1-2-2": "test" + } + }, + "node2": { + "node2-1": "test", + "node2-2": { + "node2-2-1": "test", + "node2-2-2": "test" + } + }, + "weekday": { + "tuesday": "Terça", + "saturday": "Sábado" + } +};