hustcc / timeago

:hourglass: Simple library used to format datetime with `*** time ago` statement. eg: "3 hours ago".
http://timeago.org
MIT License
224 stars 37 forks source link

Locale hindi and bengali #5

Closed ajphukan closed 8 years ago

ajphukan commented 8 years ago

Two more language for locale

hustcc commented 8 years ago

Thank you very much, if add some testcase will be perfact.

ajphukan commented 8 years ago

Can you explain or give the line number of the code to change ...

On 27-Sep-2016 7:13 AM, "hustcc" notifications@github.com wrote:

Thank you very much, if add some testcase will be perfact.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/hustcc/timeago/pull/5#issuecomment-249744951, or mute the thread https://github.com/notifications/unsubscribe-auth/AEaGrYY5xRdf7sIf3isnB9wLhH8mCHNmks5quHTSgaJpZM4KGsPb .

hustcc commented 8 years ago

You can run

./test/do_test.sh

to run testcase.

for locale test, you can write a new test file in test/locales/ dir, and add

python test/locales/<locale_name>.py

into test/do_test.sh.

ajphukan commented 8 years ago

means i have to write the whole test file like the eng test case ...

On 27 September 2016 at 10:01, hustcc notifications@github.com wrote:

You can run

./test/do_test.sh

to run testcase.

for locale test, you can write a new test file in test/locales/ dir, and add

python test/locales/.py

into test/do_test.sh.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/hustcc/timeago/pull/5#issuecomment-249763939, or mute the thread https://github.com/notifications/unsubscribe-auth/AEaGrQim7KoC8Kce1j0cbuDQWXF_locxks5quJwngaJpZM4KGsPb .

hustcc commented 8 years ago

yes ^_^

ajphukan commented 8 years ago

okk let me write the test case first .. if you need help to port local files from timeago.js to timeago ...

On 27 September 2016 at 11:18, hustcc notifications@github.com wrote:

yes ^_^

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/hustcc/timeago/pull/5#issuecomment-249772189, or mute the thread https://github.com/notifications/unsubscribe-auth/AEaGrUif_I1StNhJEXSQevnhHAnyeR13ks5quK4ygaJpZM4KGsPb .

jace commented 4 years ago

These locale files are incorrectly named. They should be hi_IN.py or hi.py (Hindi) and bn_IN.py (Bengali). IN is the country code and not the language code, so it should appear second. Bengali is bn, not bg.