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

multi language does not work #102

Closed
mreza9 opened this issue Jul 3, 2020 · 1 comment
Closed

multi language does not work #102

mreza9 opened this issue Jul 3, 2020 · 1 comment

Comments

@mreza9
Copy link

mreza9 commented Jul 3, 2020

multi-language does not work and returns only English.

in src\timeago.dat please add other languages. (now added en and es only)

Map<String, LookupMessages> _lookupMessagesMap = {
'en': EnMessages(),
'en_short': EnShortMessages(),
'es': EsMessages(),
'es_short': EsShortMessages(),
'fr': FrMessages(),
};

I added fr language.

@topex-psy
Copy link

you can initalize your class with this code, for example for Indonesian language:

timeago.setLocaleMessages('id', timeago.IdMessages());

@kranfix kranfix closed this as completed Oct 11, 2020
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

3 participants