Skip to content

Commit

Permalink
Adds tests
Browse files Browse the repository at this point in the history
Adds locale to bootbox.all.js and bootbox.locales.js
  • Loading branch information
tiesont committed Nov 30, 2020
1 parent 4ca46e2 commit 90ddcea
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bootbox.all.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,11 @@
CANCEL : 'Відміна',
CONFIRM : 'Прийняти'
},
vi : {
OK : 'OK',
CANCEL : 'Hủy bỏ',
CONFIRM : 'Xác nhận'
},
zh_CN : {
OK : 'OK',
CANCEL : '取消',
Expand Down
8 changes: 8 additions & 0 deletions bootbox.locales.js
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,14 @@
});
})();

(function () {
bootbox.addLocale('vi', {
OK: 'OK',
CANCEL: 'Hủy bỏ',
CONFIRM: 'Xác nhận'
});
})();

(function () {
bootbox.addLocale('zh_CN', {
OK: 'OK',
Expand Down
14 changes: 14 additions & 0 deletions tests/locales.test.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 90ddcea

Please sign in to comment.