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

add Indonesian(id) locale support #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ test: lint
@$(BIN)/mocha -t 5000 -b -R spec spec.js

lint:
@$(BIN)/jshint index.js cs.js da.js de.js en.js es.js fi.js fr.js nl.js pt-br.js ru.js sk.js sv.js tr.js
@$(BIN)/jshint index.js cs.js da.js de.js en.js es.js fi.js fr.js nl.js pt-br.js ru.js sk.js sv.js tr.js id.js

install:
npm install
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ names.am // => 'vormittags'
names.pm // => 'nachmittags'
```

Brazilian Portuguese ([pt-br](pt-br.js)), Czech ([cs](cs.js)), Danish ([da](da.js)), Dutch ([nl](nl.js)), English ([en](en.js)), Finnish ([fi](fi.js)), French ([fr](fr.js)), German ([de](de.js)), Spanish ([es](es.js)), Russian ([ru](ru.js)), Slovak ([sk](sk.js)), Swedish ([sv](sv.js)) and Turkish ([tr](tr.js)) are currently the only supported locales. Pull requests welcome.
Brazilian Portuguese ([pt-br](pt-br.js)), Czech ([cs](cs.js)), Danish ([da](da.js)), Dutch ([nl](nl.js)), English ([en](en.js)), Finnish ([fi](fi.js)), French ([fr](fr.js)), German ([de](de.js)), Spanish ([es](es.js)), Russian ([ru](ru.js)), Slovak ([sk](sk.js)), Swedish ([sv](sv.js)), Turkish ([tr](tr.js)), and Indonesian ([id](id.js)) are currently the only supported locales. Pull requests welcome.


## Contributing
Expand Down
11 changes: 11 additions & 0 deletions id.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
"use strict";

module.exports = {
__locale: "id",
days: ['Minggu', 'Senin', 'Selasa', 'Rabu', 'Kamis', 'Jumat', 'Sabtu'],
abbreviated_days: ['Min', 'Sen', 'Sel', 'Rab', 'Kam', 'Jum', 'Sab'],
months: ['Januari', 'Februari', 'Maret', 'April', 'Mei', 'Juni', 'Juli', 'Agustus', 'September', 'Oktober', 'November', 'Desember'],
abbreviated_months: ['Jan', 'Feb', 'Mar', 'Apr', 'Mei', 'Jun', 'Jul', 'Agu', 'Sep', 'Okt', 'Nov', 'Des'],
am: 'Pagi',
pm: 'Petang'
};
1 change: 1 addition & 0 deletions spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ testLocale('ru');
testLocale('sk');
testLocale('sv');
testLocale('tr');
testLocale('id');

function testLocale(locale, path, name) {
path = path || ('./' + locale);
Expand Down