Skip to content

Commit

Permalink
Merge pull request #219 from jockerz/master
Browse files Browse the repository at this point in the history
Add locales Bahasa Indonesia (id)
  • Loading branch information
kartik-v authored Apr 3, 2022
2 parents caa0877 + 13fb434 commit 46c21f5
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions js/locales/id.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
/*!
* Star Rating <LANG> Translations
*
* This file must be loaded after 'star-rating.js'. Patterns in braces '{}', or
* any HTML markup tags in the messages must not be converted or translated.
*
* NOTE: this file must be saved in UTF-8 encoding.
*
* bootstrap-star-rating v4.1.3
* http://plugins.krajee.com/star-rating
*
* Copyright: 2013 - 2021, Kartik Visweswaran, Krajee.com
*
* Licensed under the BSD 3-Clause
* https://github.com/kartik-v/bootstrap-star-rating/blob/master/LICENSE.md
*/
(function (factory) {
'use strict';
if (typeof define === 'function' && define.amd) {
define(['jquery'], factory);
} else if (typeof module === 'object' && typeof module.exports === 'object') {
factory(require('jquery'));
} else {
factory(window.jQuery);
}
}(function ($) {
"use strict";
$.fn.ratingLocales['id'] = {
defaultCaption: '{rating} Bintang',
starCaptions: {
0.5: 'Setengah Bintang',
1: 'Satu Bintang',
1.5: 'Satu Setengah Bintang',
2: 'Dua Bintang',
2.5: 'Dua Setengah Bintang',
3: 'Tiga Bintang',
3.5: 'Tiga Setangah Bintang',
4: 'Empat Bintang',
4.5: 'Empat Setangah Bintang',
5: 'Lima Bintang'
},
clearButtonTitle: 'Bersihkan',
clearCaption: 'Belum ada penilaian'
};
}));

1 comment on commit 46c21f5

@jockerz
Copy link

@jockerz jockerz commented on 46c21f5 Apr 4, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @kartik-v

Please sign in to comment.