Skip to content

Commit

Permalink
Merge pull request #273 from ms183/master
Browse files Browse the repository at this point in the history
Added Japanese locale
  • Loading branch information
makeusabrew committed Jun 12, 2014
2 parents 1ddf210 + a5c014e commit 29e954f
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bootbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -824,6 +824,11 @@
CANCEL : "Annulla",
CONFIRM : "Conferma"
},
ja : {
OK : "OK",
CANCEL : "キャンセル",
CONFIRM : "確認"
},
lt : {
OK : "Gerai",
CANCEL : "Atšaukti",
Expand Down
13 changes: 13 additions & 0 deletions tests/locales.test.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -285,3 +285,16 @@ describe "bootbox locales", ->

it "shows the correct CONFIRM translation", ->
expect(@labels.confirm).to.equal "Επιβεβαίωση"

describe "Japanese", ->
beforeEach ->
@setLocale "ja"

it "shows the correct OK translation", ->
expect(@labels.ok).to.equal "OK"

it "shows the correct CANCEL translation", ->
expect(@labels.cancel).to.equal "キャンセル"

it "shows the correct CONFIRM translation", ->
expect(@labels.confirm).to.equal "確認"

0 comments on commit 29e954f

Please sign in to comment.