Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lang is not supported ru #51

Closed
musichen opened this issue Apr 2, 2018 · 14 comments
Closed

lang is not supported ru #51

musichen opened this issue Apr 2, 2018 · 14 comments

Comments

@musichen
Copy link

musichen commented Apr 2, 2018

I've used react-intl-universal to fetch multiple languages: de, en, fr, ja, ru, zh

When switching the lang, performing the re-init intl.init() into ru-RU
i've got a warning that RU is not supported, locale get loaded and works just fine.
I wonder why the warning.

Here is the log:

screen shot 2018-04-02 at 19 16 20

here is locales structure:

screen shot 2018-04-02 at 19 20 04

here is ru-RU.json
screen shot 2018-04-02 at 19 21 39

@cwtuan
Copy link
Collaborator

cwtuan commented Apr 3, 2018

fixed in v1.9.2

@cwtuan cwtuan closed this as completed Apr 3, 2018
@musichen
Copy link
Author

musichen commented Apr 8, 2018

thanks for prompt actions on fixing this issue.

@musichen
Copy link
Author

musichen commented Apr 8, 2018

on my side still not fixed.
I have updated react-intl-universal to version 1.9.2

image

I still receive the warning of unsupported RU lang

image

@cwtuan could you please have a look at it again?

Thanks in advance!

@cwtuan
Copy link
Collaborator

cwtuan commented Apr 9, 2018

@musichen
It works on my side.
What's your currentLocale? Could you log it?

@cwtuan
Copy link
Collaborator

cwtuan commented Apr 9, 2018

BTW, could you please provide your ru-RU.json to me?

@musichen
Copy link
Author

musichen commented Apr 10, 2018

  currentLocale: 'en-US'

my ru-RU.json:

download original file here: http://rgho.st/66vHq5wk5

or here is the contents of the file ru-RU.json:

{
  "SIMPLE": "Простое предложение",
  "HELLO": "Привет, {name}. Добро пожаловать на {where}!",
  "TIP": "Это хтмл тип перевода <span style='color:red'>HTML</span>",
  "TIP_VAR": "Это перевод с ХТМЛ а также с перменной <span style='color:red'>{message}</span>",
  "SALE_START": "Распродажа начинается {start, date}",
  "SALE_END": "Распродажа заканчивается {end, date, long}",
  "COUPON": "Купон истекает {expires, time, medium}",
  "SALE_PRICE": "Цена {price, number, USD}",
  "PHOTO": "У вас {photoNum, plural, =0 {нет фотографий.} =1 {одна фотография.} other {# фотографий.}}",
  "MESSAGE_NOT_IN_COMPONENT": "react-intl-universal не может интернационализировать в React.Component, так как перевод отсуствует для компонента"
}

@kspacja
Copy link

kspacja commented May 25, 2018

Hi,

I didn't wanted to create new issue, cause my is the same, but app, what I'm writing, has to support polish language.

Thanks in advanced

@cwtuan
Copy link
Collaborator

cwtuan commented May 26, 2018

@kspacja Try version 1.11.2.

@maksimovicdanijel
Copy link

I also have an issue that lang nl is not supported, working with 1.11.2 version.

@cwtuan
Copy link
Collaborator

cwtuan commented Jul 3, 2018

@maksimovicdanijel Try v1.11.3.

@rashmendis
Copy link

lang "sv" is not supported. v.1.11.1

@cwtuan
Copy link
Collaborator

cwtuan commented Jul 5, 2018

@rashmendis
Try v1.11.4.

@h4mit
Copy link
Contributor

h4mit commented Sep 3, 2018

lang "fa" is not supported. my version : ^1.12.1

h4mit added a commit to h4mit/react-intl-universal that referenced this issue Sep 3, 2018
cwtuan added a commit that referenced this issue Sep 4, 2018
fix #51#issuecomment-418042670 add fa lang
@cwtuan
Copy link
Collaborator

cwtuan commented Sep 4, 2018

@h4mit
"fa" is supported in v1.12.2.
However, you can also customize commonLocaleDataUrls to support more languages since v1.12.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants