diff options
Diffstat (limited to 'vendor/github.com/nicksnyder/go-i18n/goi18n/testdata')
-rw-r--r-- | vendor/github.com/nicksnyder/go-i18n/goi18n/testdata/expected/R.go | 38 | ||||
-rw-r--r-- | vendor/github.com/nicksnyder/go-i18n/goi18n/testdata/input/en-us.constants.json | 45 |
2 files changed, 83 insertions, 0 deletions
diff --git a/vendor/github.com/nicksnyder/go-i18n/goi18n/testdata/expected/R.go b/vendor/github.com/nicksnyder/go-i18n/goi18n/testdata/expected/R.go new file mode 100644 index 000000000..9b5334a7e --- /dev/null +++ b/vendor/github.com/nicksnyder/go-i18n/goi18n/testdata/expected/R.go @@ -0,0 +1,38 @@ +// DON'T CHANGE THIS FILE MANUALLY +// This file was generated using the command: +// $ goi18n constants + +package R + +// DDays is the identifier for the following localizable string template(s): +// one: "{{.Count}} day" +// other: "{{.Count}} days" +const DDays = "d_days" + +// MyHeightInMeters is the identifier for the following localizable string template(s): +// one: "I am {{.Count}} meter tall." +// other: "I am {{.Count}} meters tall." +const MyHeightInMeters = "my_height_in_meters" + +// PersonGreeting is the identifier for the following localizable string template(s): +// "Hello {{.Person}}" +const PersonGreeting = "person_greeting" + +// PersonUnreadEmailCount is the identifier for the following localizable string template(s): +// one: "{{.Person}} has {{.Count}} unread email." +// other: "{{.Person}} has {{.Count}} unread emails." +const PersonUnreadEmailCount = "person_unread_email_count" + +// PersonUnreadEmailCountTimeframe is the identifier for the following localizable string template(s): +// one: "{{.Person}} has {{.Count}} unread email in the past {{.Timeframe}}." +// other: "{{.Person}} has {{.Count}} unread emails in the past {{.Timeframe}}." +const PersonUnreadEmailCountTimeframe = "person_unread_email_count_timeframe" + +// ProgramGreeting is the identifier for the following localizable string template(s): +// "Hello world" +const ProgramGreeting = "program_greeting" + +// YourUnreadEmailCount is the identifier for the following localizable string template(s): +// one: "You have {{.Count}} unread email." +// other: "You have {{.Count}} unread emails." +const YourUnreadEmailCount = "your_unread_email_count" diff --git a/vendor/github.com/nicksnyder/go-i18n/goi18n/testdata/input/en-us.constants.json b/vendor/github.com/nicksnyder/go-i18n/goi18n/testdata/input/en-us.constants.json new file mode 100644 index 000000000..5aedc235a --- /dev/null +++ b/vendor/github.com/nicksnyder/go-i18n/goi18n/testdata/input/en-us.constants.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 |