-
-
Notifications
You must be signed in to change notification settings - Fork 410
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
Issue with 11..19 and n1 numbers and polish locale #13
Comments
@@, ^==^ |
I think it should be allowed, so the old locale will work without the need to covert them to functions. |
OK, It can only be this way. Polish is a very specia language ^_^~ You can just do it, but keep the library little, and the |
In fact, the locales were added in 2 days (today and yesterday), so I think the locales rule can be updated. The rules now
If change the locales rule to above, the library maybe more tiny and prefact. |
just have a look 5c834b3. @NicoJuicy @paulcmal @CreativeSparkStudios @jcubic update the locales, use // register
timeago.register('da', require('timeago.js/locales/da'));
// then use it
timeago.format(date, 'da'); the locales rule more prefact, and the library from 2.5kb to 2.1 kb. ^_^~ |
how to register a locale ? /Users/xiaomei/java_tool/apache-maven-3.3.3
I've created Polish locale (will create PR) but have problems. In polish
"1 month" ago is "1 miesiąc temu"
"%s months ago" is "%s miesięce temu"
but for numbers 11..19, 21 31, ..., 91 is "%s miesięcy temu"
and there is no way to have this locale without modification of the library. Maybe locale be a function that accept number and unit like:
and the code can detect if locale is function or array.
The text was updated successfully, but these errors were encountered: