Skip to content

Instantly share code, notes, and snippets.

@bodrovis
Last active April 15, 2019 14:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bodrovis/e97d600e7b26ea97789324d173362481 to your computer and use it in GitHub Desktop.
Save bodrovis/e97d600e7b26ea97789324d173362481 to your computer and use it in GitHub Desktop.
const locales = {
en: {
welcome: 'Welcome to our demo!',
tos: 'Terms of service',
term: 'I accept {{0}}.',
info: {
warning: 'Warning message'
},
apple: 'One apple', // <---
apple_plural: '{{count}} apples' // <---
},
ru: {
welcome: 'Добро пожаловать в наше демо!',
tos: 'Условия использования',
term: 'Я принимаю {{0}}.',
info: {
warning: 'Предупреждение'
},
apple_0: "{{count}} яблоко", // <---
apple_1: "{{count}} яблока", // <---
apple_2: "{{count}} яблок" // <---
},
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment