diff --git a/bootbox.all.js b/bootbox.all.js index 99b7d934..7941071b 100644 --- a/bootbox.all.js +++ b/bootbox.all.js @@ -259,6 +259,11 @@ CANCEL : 'Відміна', CONFIRM : 'Прийняти' }, + vi : { + OK : 'OK', + CANCEL : 'Hủy bỏ', + CONFIRM : 'Xác nhận' + }, zh_CN : { OK : 'OK', CANCEL : '取消', diff --git a/bootbox.locales.js b/bootbox.locales.js index 046d5a22..d320efa8 100644 --- a/bootbox.locales.js +++ b/bootbox.locales.js @@ -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', diff --git a/tests/locales.test.js b/tests/locales.test.js index 932f5e10..82299432 100644 --- a/tests/locales.test.js +++ b/tests/locales.test.js @@ -536,4 +536,18 @@ describe('bootbox locales', function() { return expect(this.labels.confirm).to.equal('დადასტურება'); }); }); + describe('Vietnamese', function() { + beforeEach(function() { + return this.setLocale('vi'); + }); + it('shows the correct OK translation', function() { + return expect(this.labels.ok).to.equal('OK'); + }); + it('shows the correct CANCEL translation', function() { + return expect(this.labels.cancel).to.equal('Hủy bỏ'); + }); + return it('shows the correct CONFIRM translation', function() { + return expect(this.labels.confirm).to.equal('Xác nhận'); + }); + }); });