Skip to content

Commit

Permalink
Example: add Russian locale to webpack example
Browse files Browse the repository at this point in the history
  • Loading branch information
markelog committed Aug 26, 2015
1 parent cc621b9 commit 0b758e8
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
18 changes: 18 additions & 0 deletions examples/app-npm-webpack/messages/ru.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"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 {У вас осталось # задач}",
" other {У вас осталось # задачи}",
"}."
]
}
}
6 changes: 3 additions & 3 deletions examples/app-npm-webpack/webpack-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ module.exports = {
}),
new GlobalizePlugin({
production: options.production,
developmentLocale: "en",
supportedLocales: [ "ar", "de", "en", "es", "pt", "zh" ],
developmentLocale: "ru",
supportedLocales: ["ar", "de", "en", "es", "pt", "ru", "zh"],
messages: "messages/[locale].json",
output: "i18n/[locale].[hash].js"
})

].concat( options.production ? [
new webpack.optimize.DedupePlugin(),
new CommonsChunkPlugin( "vendor", "vendor.[hash].js" ),
Expand Down

0 comments on commit 0b758e8

Please sign in to comment.