Skip to content

Commit

Permalink
App Example: Include Russian (ru) translation
Browse files Browse the repository at this point in the history
Ref #481
Closes #493
  • Loading branch information
markelog authored and rxaviers committed Aug 27, 2015
1 parent a19869f commit 4f5248f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
19 changes: 19 additions & 0 deletions examples/app-npm-webpack/messages/ru.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"ru": {
"intro-1": "Используйте Globalize для интернационализиции вашего приложения.",
"number-label": "Число",
"currency-label": "Валюта",
"date-label": "Дата",
"relative-time-label": "Относительное время",
"message-1": "Пример сообщения со смешанными числами \"{number}\", валютой \"{currency}\", датами \"{date}\" и относительным временем \"{relativeTime}\".",
"message-2": [
"Пример сообщения с поддержкой множественного числа:",
"{count, plural,",
" one {У вас осталась одна задача}",
" many {У вас осталось # задач}",
" few {У вас осталось # задачи}",
" other {У вас осталось # задачи}",
"}."
]
}
}
2 changes: 1 addition & 1 deletion examples/app-npm-webpack/webpack-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ module.exports = {
new GlobalizePlugin({
production: options.production,
developmentLocale: "en",
supportedLocales: [ "ar", "de", "en", "es", "pt", "zh" ],
supportedLocales: [ "ar", "de", "en", "es", "pt", "ru", "zh" ],
messages: "messages/[locale].json",
output: "i18n/[locale].[hash].js"
})
Expand Down

0 comments on commit 4f5248f

Please sign in to comment.