diff options
Diffstat (limited to 'vendor/github.com/nicksnyder/go-i18n/goi18n/testdata')
17 files changed, 598 insertions, 0 deletions
diff --git a/vendor/github.com/nicksnyder/go-i18n/goi18n/testdata/en-us.yaml b/vendor/github.com/nicksnyder/go-i18n/goi18n/testdata/en-us.yaml new file mode 100644 index 000000000..cdf9c8dc5 --- /dev/null +++ b/vendor/github.com/nicksnyder/go-i18n/goi18n/testdata/en-us.yaml @@ -0,0 +1,30 @@ +- id: program_greeting + translation: "Hello world" + +- id: person_greeting + translation: "Hello {{.Person}}" + +- id: my_height_in_meters + translation: + one: "I am {{.Count}} meter tall." + other: "I am {{.Count}} meters tall." + +- id: your_unread_email_count + translation: + one: "You have {{.Count}} unread email." + other: "You have {{.Count}} unread emails." + +- id: person_unread_email_count + translation: + one: "{{.Person}} has {{.Count}} unread email." + other: "{{.Person}} has {{.Count}} unread emails." + +- id: person_unread_email_count_timeframe + translation: + one: "{{.Person}} has {{.Count}} unread email in the past {{.Timeframe}}." + other: "{{.Person}} has {{.Count}} unread emails in the past {{.Timeframe}}." + +- id: d_days + translation: + one: "{{.Count}} day" + other: "{{.Count}} days" diff --git a/vendor/github.com/nicksnyder/go-i18n/goi18n/testdata/expected/ar-ar.all.json b/vendor/github.com/nicksnyder/go-i18n/goi18n/testdata/expected/ar-ar.all.json new file mode 100644 index 000000000..26a72ff30 --- /dev/null +++ b/vendor/github.com/nicksnyder/go-i18n/goi18n/testdata/expected/ar-ar.all.json @@ -0,0 +1,65 @@ +[ + { + "id": "d_days", + "translation": { + "few": "new arabic few translation of d_days", + "many": "arabic many translation of d_days", + "one": "arabic one translation of d_days", + "other": "", + "two": "", + "zero": "" + } + }, + { + "id": "my_height_in_meters", + "translation": { + "few": "", + "many": "", + "one": "", + "other": "", + "two": "", + "zero": "" + } + }, + { + "id": "person_greeting", + "translation": "new arabic translation of person_greeting" + }, + { + "id": "person_unread_email_count", + "translation": { + "few": "arabic few translation of person_unread_email_count", + "many": "arabic many translation of person_unread_email_count", + "one": "arabic one translation of person_unread_email_count", + "other": "arabic other translation of person_unread_email_count", + "two": "arabic two translation of person_unread_email_count", + "zero": "arabic zero translation of person_unread_email_count" + } + }, + { + "id": "person_unread_email_count_timeframe", + "translation": { + "few": "", + "many": "", + "one": "", + "other": "", + "two": "", + "zero": "" + } + }, + { + "id": "program_greeting", + "translation": "" + }, + { + "id": "your_unread_email_count", + "translation": { + "few": "", + "many": "", + "one": "", + "other": "", + "two": "", + "zero": "" + } + } +]
\ No newline at end of file diff --git a/vendor/github.com/nicksnyder/go-i18n/goi18n/testdata/expected/ar-ar.untranslated.json b/vendor/github.com/nicksnyder/go-i18n/goi18n/testdata/expected/ar-ar.untranslated.json new file mode 100644 index 000000000..a19fa0bee --- /dev/null +++ b/vendor/github.com/nicksnyder/go-i18n/goi18n/testdata/expected/ar-ar.untranslated.json @@ -0,0 +1,50 @@ +[ + { + "id": "d_days", + "translation": { + "few": "new arabic few translation of d_days", + "many": "arabic many translation of d_days", + "one": "arabic one translation of d_days", + "other": "{{.Count}} days", + "two": "{{.Count}} days", + "zero": "{{.Count}} days" + } + }, + { + "id": "my_height_in_meters", + "translation": { + "few": "I am {{.Count}} meters tall.", + "many": "I am {{.Count}} meters tall.", + "one": "I am {{.Count}} meters tall.", + "other": "I am {{.Count}} meters tall.", + "two": "I am {{.Count}} meters tall.", + "zero": "I am {{.Count}} meters tall." + } + }, + { + "id": "person_unread_email_count_timeframe", + "translation": { + "few": "{{.Person}} has {{.Count}} unread emails in the past {{.Timeframe}}.", + "many": "{{.Person}} has {{.Count}} unread emails in the past {{.Timeframe}}.", + "one": "{{.Person}} has {{.Count}} unread emails in the past {{.Timeframe}}.", + "other": "{{.Person}} has {{.Count}} unread emails in the past {{.Timeframe}}.", + "two": "{{.Person}} has {{.Count}} unread emails in the past {{.Timeframe}}.", + "zero": "{{.Person}} has {{.Count}} unread emails in the past {{.Timeframe}}." + } + }, + { + "id": "program_greeting", + "translation": "Hello world" + }, + { + "id": "your_unread_email_count", + "translation": { + "few": "You have {{.Count}} unread emails.", + "many": "You have {{.Count}} unread emails.", + "one": "You have {{.Count}} unread emails.", + "other": "You have {{.Count}} unread emails.", + "two": "You have {{.Count}} unread emails.", + "zero": "You have {{.Count}} unread emails." + } + } +]
\ No newline at end of file diff --git a/vendor/github.com/nicksnyder/go-i18n/goi18n/testdata/expected/en-us.all.json b/vendor/github.com/nicksnyder/go-i18n/goi18n/testdata/expected/en-us.all.json new file mode 100644 index 000000000..5aedc235a --- /dev/null +++ b/vendor/github.com/nicksnyder/go-i18n/goi18n/testdata/expected/en-us.all.json @@ -0,0 +1,45 @@ +[ + { + "id": "d_days", + "translation": { + "one": "{{.Count}} day", + "other": "{{.Count}} days" + } + }, + { + "id": "my_height_in_meters", + "translation": { + "one": "I am {{.Count}} meter tall.", + "other": "I am {{.Count}} meters tall." + } + }, + { + "id": "person_greeting", + "translation": "Hello {{.Person}}" + }, + { + "id": "person_unread_email_count", + "translation": { + "one": "{{.Person}} has {{.Count}} unread email.", + "other": "{{.Person}} has {{.Count}} unread emails." + } + }, + { + "id": "person_unread_email_count_timeframe", + "translation": { + "one": "{{.Person}} has {{.Count}} unread email in the past {{.Timeframe}}.", + "other": "{{.Person}} has {{.Count}} unread emails in the past {{.Timeframe}}." + } + }, + { + "id": "program_greeting", + "translation": "Hello world" + }, + { + "id": "your_unread_email_count", + "translation": { + "one": "You have {{.Count}} unread email.", + "other": "You have {{.Count}} unread emails." + } + } +]
\ No newline at end of file diff --git a/vendor/github.com/nicksnyder/go-i18n/goi18n/testdata/expected/en-us.untranslated.json b/vendor/github.com/nicksnyder/go-i18n/goi18n/testdata/expected/en-us.untranslated.json new file mode 100644 index 000000000..0637a088a --- /dev/null +++ b/vendor/github.com/nicksnyder/go-i18n/goi18n/testdata/expected/en-us.untranslated.json @@ -0,0 +1 @@ +[]
\ No newline at end of file diff --git a/vendor/github.com/nicksnyder/go-i18n/goi18n/testdata/expected/fr-fr.all.json b/vendor/github.com/nicksnyder/go-i18n/goi18n/testdata/expected/fr-fr.all.json new file mode 100644 index 000000000..20e0b8736 --- /dev/null +++ b/vendor/github.com/nicksnyder/go-i18n/goi18n/testdata/expected/fr-fr.all.json @@ -0,0 +1,45 @@ +[ + { + "id": "d_days", + "translation": { + "one": "", + "other": "" + } + }, + { + "id": "my_height_in_meters", + "translation": { + "one": "", + "other": "" + } + }, + { + "id": "person_greeting", + "translation": "" + }, + { + "id": "person_unread_email_count", + "translation": { + "one": "", + "other": "" + } + }, + { + "id": "person_unread_email_count_timeframe", + "translation": { + "one": "", + "other": "" + } + }, + { + "id": "program_greeting", + "translation": "" + }, + { + "id": "your_unread_email_count", + "translation": { + "one": "", + "other": "" + } + } +]
\ No newline at end of file diff --git a/vendor/github.com/nicksnyder/go-i18n/goi18n/testdata/expected/fr-fr.untranslated.json b/vendor/github.com/nicksnyder/go-i18n/goi18n/testdata/expected/fr-fr.untranslated.json new file mode 100644 index 000000000..e2d3967c5 --- /dev/null +++ b/vendor/github.com/nicksnyder/go-i18n/goi18n/testdata/expected/fr-fr.untranslated.json @@ -0,0 +1,45 @@ +[ + { + "id": "d_days", + "translation": { + "one": "{{.Count}} days", + "other": "{{.Count}} days" + } + }, + { + "id": "my_height_in_meters", + "translation": { + "one": "I am {{.Count}} meters tall.", + "other": "I am {{.Count}} meters tall." + } + }, + { + "id": "person_greeting", + "translation": "Hello {{.Person}}" + }, + { + "id": "person_unread_email_count", + "translation": { + "one": "{{.Person}} has {{.Count}} unread emails.", + "other": "{{.Person}} has {{.Count}} unread emails." + } + }, + { + "id": "person_unread_email_count_timeframe", + "translation": { + "one": "{{.Person}} has {{.Count}} unread emails in the past {{.Timeframe}}.", + "other": "{{.Person}} has {{.Count}} unread emails in the past {{.Timeframe}}." + } + }, + { + "id": "program_greeting", + "translation": "Hello world" + }, + { + "id": "your_unread_email_count", + "translation": { + "one": "You have {{.Count}} unread emails.", + "other": "You have {{.Count}} unread emails." + } + } +]
\ No newline at end of file diff --git a/vendor/github.com/nicksnyder/go-i18n/goi18n/testdata/input/ar-ar.one.json b/vendor/github.com/nicksnyder/go-i18n/goi18n/testdata/input/ar-ar.one.json new file mode 100644 index 000000000..f5af1d6f4 --- /dev/null +++ b/vendor/github.com/nicksnyder/go-i18n/goi18n/testdata/input/ar-ar.one.json @@ -0,0 +1,54 @@ +[ + { + "id": "d_days", + "translation": { + "few": "arabic few translation of d_days", + "many": "arabic many translation of d_days", + "one": "", + "other": "", + "two": "", + "zero": "" + } + }, + { + "id": "person_greeting", + "translation": "arabic translation of person_greeting" + }, + { + "id": "person_unread_email_count", + "translation": { + "few": "arabic few translation of person_unread_email_count", + "many": "arabic many translation of person_unread_email_count", + "one": "arabic one translation of person_unread_email_count", + "other": "", + "two": "", + "zero": "" + } + }, + { + "id": "person_unread_email_count_timeframe", + "translation": { + "few": "", + "many": "", + "one": "", + "other": "", + "two": "", + "zero": "" + } + }, + { + "id": "program_greeting", + "translation": "" + }, + { + "id": "your_unread_email_count", + "translation": { + "few": "", + "many": "", + "one": "", + "other": "", + "two": "", + "zero": "" + } + } +] diff --git a/vendor/github.com/nicksnyder/go-i18n/goi18n/testdata/input/ar-ar.two.json b/vendor/github.com/nicksnyder/go-i18n/goi18n/testdata/input/ar-ar.two.json new file mode 100644 index 000000000..e98d7e9b2 --- /dev/null +++ b/vendor/github.com/nicksnyder/go-i18n/goi18n/testdata/input/ar-ar.two.json @@ -0,0 +1,54 @@ +[ + { + "id": "d_days", + "translation": { + "few": "new arabic few translation of d_days", + "many": "", + "one": "arabic one translation of d_days", + "other": "", + "two": "", + "zero": "" + } + }, + { + "id": "person_greeting", + "translation": "new arabic translation of person_greeting" + }, + { + "id": "person_unread_email_count", + "translation": { + "few": "", + "many": "", + "one": "", + "other": "arabic other translation of person_unread_email_count", + "two": "arabic two translation of person_unread_email_count", + "zero": "arabic zero translation of person_unread_email_count" + } + }, + { + "id": "person_unread_email_count_timeframe", + "translation": { + "few": "", + "many": "", + "one": "", + "other": "", + "two": "", + "zero": "" + } + }, + { + "id": "program_greeting", + "translation": "" + }, + { + "id": "your_unread_email_count", + "translation": { + "few": "", + "many": "", + "one": "", + "other": "", + "two": "", + "zero": "" + } + } +] diff --git a/vendor/github.com/nicksnyder/go-i18n/goi18n/testdata/input/en-us.one.json b/vendor/github.com/nicksnyder/go-i18n/goi18n/testdata/input/en-us.one.json new file mode 100644 index 000000000..63a9d6ffb --- /dev/null +++ b/vendor/github.com/nicksnyder/go-i18n/goi18n/testdata/input/en-us.one.json @@ -0,0 +1,30 @@ +[ + { + "id": "program_greeting", + "translation": "Hello world" + }, + { + "id": "your_unread_email_count", + "translation": { + "one": "You have {{.Count}} unread email.", + "other": "You have {{.Count}} unread emails." + } + }, + { + "id": "my_height_in_meters", + "translation": { + "one": "I am {{.Count}} meter tall.", + "other": "I am {{.Count}} meters tall." + } + }, + { + "id": "person_unread_email_count_timeframe", + "translation": { + "one": "{{.Person}} has {{.Count}} unread email in the past {{.Timeframe}}." + } + }, + { + "id": "d_days", + "translation": "this should get overwritten" + } +] diff --git a/vendor/github.com/nicksnyder/go-i18n/goi18n/testdata/input/en-us.two.json b/vendor/github.com/nicksnyder/go-i18n/goi18n/testdata/input/en-us.two.json new file mode 100644 index 000000000..dcc715c43 --- /dev/null +++ b/vendor/github.com/nicksnyder/go-i18n/goi18n/testdata/input/en-us.two.json @@ -0,0 +1,26 @@ +[ + { + "id": "person_greeting", + "translation": "Hello {{.Person}}" + }, + { + "id": "person_unread_email_count", + "translation": { + "one": "{{.Person}} has {{.Count}} unread email.", + "other": "{{.Person}} has {{.Count}} unread emails." + } + }, + { + "id": "person_unread_email_count_timeframe", + "translation": { + "other": "{{.Person}} has {{.Count}} unread emails in the past {{.Timeframe}}." + } + }, + { + "id": "d_days", + "translation": { + "one": "{{.Count}} day", + "other": "{{.Count}} days" + } + } +] diff --git a/vendor/github.com/nicksnyder/go-i18n/goi18n/testdata/input/fr-fr.json b/vendor/github.com/nicksnyder/go-i18n/goi18n/testdata/input/fr-fr.json new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/vendor/github.com/nicksnyder/go-i18n/goi18n/testdata/input/fr-fr.json diff --git a/vendor/github.com/nicksnyder/go-i18n/goi18n/testdata/input/yaml/ar-ar.one.json b/vendor/github.com/nicksnyder/go-i18n/goi18n/testdata/input/yaml/ar-ar.one.json new file mode 100644 index 000000000..f5af1d6f4 --- /dev/null +++ b/vendor/github.com/nicksnyder/go-i18n/goi18n/testdata/input/yaml/ar-ar.one.json @@ -0,0 +1,54 @@ +[ + { + "id": "d_days", + "translation": { + "few": "arabic few translation of d_days", + "many": "arabic many translation of d_days", + "one": "", + "other": "", + "two": "", + "zero": "" + } + }, + { + "id": "person_greeting", + "translation": "arabic translation of person_greeting" + }, + { + "id": "person_unread_email_count", + "translation": { + "few": "arabic few translation of person_unread_email_count", + "many": "arabic many translation of person_unread_email_count", + "one": "arabic one translation of person_unread_email_count", + "other": "", + "two": "", + "zero": "" + } + }, + { + "id": "person_unread_email_count_timeframe", + "translation": { + "few": "", + "many": "", + "one": "", + "other": "", + "two": "", + "zero": "" + } + }, + { + "id": "program_greeting", + "translation": "" + }, + { + "id": "your_unread_email_count", + "translation": { + "few": "", + "many": "", + "one": "", + "other": "", + "two": "", + "zero": "" + } + } +] diff --git a/vendor/github.com/nicksnyder/go-i18n/goi18n/testdata/input/yaml/ar-ar.two.json b/vendor/github.com/nicksnyder/go-i18n/goi18n/testdata/input/yaml/ar-ar.two.json new file mode 100644 index 000000000..e98d7e9b2 --- /dev/null +++ b/vendor/github.com/nicksnyder/go-i18n/goi18n/testdata/input/yaml/ar-ar.two.json @@ -0,0 +1,54 @@ +[ + { + "id": "d_days", + "translation": { + "few": "new arabic few translation of d_days", + "many": "", + "one": "arabic one translation of d_days", + "other": "", + "two": "", + "zero": "" + } + }, + { + "id": "person_greeting", + "translation": "new arabic translation of person_greeting" + }, + { + "id": "person_unread_email_count", + "translation": { + "few": "", + "many": "", + "one": "", + "other": "arabic other translation of person_unread_email_count", + "two": "arabic two translation of person_unread_email_count", + "zero": "arabic zero translation of person_unread_email_count" + } + }, + { + "id": "person_unread_email_count_timeframe", + "translation": { + "few": "", + "many": "", + "one": "", + "other": "", + "two": "", + "zero": "" + } + }, + { + "id": "program_greeting", + "translation": "" + }, + { + "id": "your_unread_email_count", + "translation": { + "few": "", + "many": "", + "one": "", + "other": "", + "two": "", + "zero": "" + } + } +] diff --git a/vendor/github.com/nicksnyder/go-i18n/goi18n/testdata/input/yaml/en-us.one.yaml b/vendor/github.com/nicksnyder/go-i18n/goi18n/testdata/input/yaml/en-us.one.yaml new file mode 100644 index 000000000..3ca8e380d --- /dev/null +++ b/vendor/github.com/nicksnyder/go-i18n/goi18n/testdata/input/yaml/en-us.one.yaml @@ -0,0 +1,19 @@ +- id: program_greeting + translation: Hello world + +- id: your_unread_email_count + translation: + one: You have {{.Count}} unread email. + other: You have {{.Count}} unread emails. + +- id: my_height_in_meters + translation: + one: I am {{.Count}} meter tall. + other: I am {{.Count}} meters tall. + +- id: person_unread_email_count_timeframe + translation: + one: "{{.Person}} has {{.Count}} unread email in the past {{.Timeframe}}." + +- id: d_days + translation: this should get overwritten
\ No newline at end of file diff --git a/vendor/github.com/nicksnyder/go-i18n/goi18n/testdata/input/yaml/en-us.two.json b/vendor/github.com/nicksnyder/go-i18n/goi18n/testdata/input/yaml/en-us.two.json new file mode 100644 index 000000000..dcc715c43 --- /dev/null +++ b/vendor/github.com/nicksnyder/go-i18n/goi18n/testdata/input/yaml/en-us.two.json @@ -0,0 +1,26 @@ +[ + { + "id": "person_greeting", + "translation": "Hello {{.Person}}" + }, + { + "id": "person_unread_email_count", + "translation": { + "one": "{{.Person}} has {{.Count}} unread email.", + "other": "{{.Person}} has {{.Count}} unread emails." + } + }, + { + "id": "person_unread_email_count_timeframe", + "translation": { + "other": "{{.Person}} has {{.Count}} unread emails in the past {{.Timeframe}}." + } + }, + { + "id": "d_days", + "translation": { + "one": "{{.Count}} day", + "other": "{{.Count}} days" + } + } +] diff --git a/vendor/github.com/nicksnyder/go-i18n/goi18n/testdata/input/yaml/fr-fr.json b/vendor/github.com/nicksnyder/go-i18n/goi18n/testdata/input/yaml/fr-fr.json new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/vendor/github.com/nicksnyder/go-i18n/goi18n/testdata/input/yaml/fr-fr.json |