Skip to content

Commit 9d69336

Browse files
amrirasyidim-mohr
andauthored
Add Indonesian locale (radiantearth#595)
* finished with first 3 * second part completed * default files added * added id to config * remove comments Co-authored-by: Matthias Mohr <[email protected]> * deleted stac-field.js * added duration locale * minor edit on text --------- Co-authored-by: Matthias Mohr <[email protected]>
1 parent fac858f commit 9d69336

File tree

9 files changed

+966
-0
lines changed

9 files changed

+966
-0
lines changed

config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ module.exports = {
2424
"ja",
2525
"pt",
2626
// "pt-BR"
27+
"id"
2728
],
2829
apiCatalogPriority: null,
2930
useTileLayerAsFallback: true,

src/locales/id/config.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"native": "Bahasa Indonesia",
3+
"global": "Indonesian"
4+
}

src/locales/id/custom.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"authConfig": {
3+
"description": ""
4+
},
5+
"fields": {
6+
7+
}
8+
}

src/locales/id/datepicker.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
const dateFormat = 'DD-MM-YYYY';
2+
const timeFormat = 'HH:mm:ss';
3+
const dateTimeFormat = `${dateFormat} ${timeFormat}`;
4+
const locale = import('vue2-datepicker/locale/id');
5+
export default {dateFormat, timeFormat, dateTimeFormat, locale};

src/locales/id/default.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import Utils from '../../utils';
2+
export default Utils.mergeDeep(
3+
{
4+
fields: require('./fields.json'),
5+
},
6+
require('./texts.json'),
7+
require('./custom.json')
8+
);

src/locales/id/duration.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
const locale = {
2+
years(c) { return "tahun"; },
3+
months(c) { return "bulan"; },
4+
weeks(c) { return "minggu"; },
5+
days(c) { return "hari"; },
6+
hours(c) { return "jam"; },
7+
minutes(c) { return "menit"; },
8+
seconds(c) { return "detik"; },
9+
decimal: ",",
10+
};

0 commit comments

Comments
 (0)