From 13fb43489a0120d9669a64258e1ae5cdbce2f066 Mon Sep 17 00:00:00 2001 From: user Date: Sun, 3 Apr 2022 00:49:52 +0700 Subject: [PATCH] Add locales Bahasa Indonesia (id) --- js/locales/id.js | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 js/locales/id.js diff --git a/js/locales/id.js b/js/locales/id.js new file mode 100644 index 0000000..f0d1a89 --- /dev/null +++ b/js/locales/id.js @@ -0,0 +1,45 @@ +/*! + * Star Rating 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' + }; +}));