Skip to content

Commit

Permalink
Added Croatian tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtSabintsev committed Jun 24, 2016
1 parent 610f3aa commit 180952e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Sample App/SirenTests/SirenTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,23 @@ extension SirenTests {
XCTAssertEqual(siren.localizedUpdateButtonTitle(), "更新")
}

func testCroatianLocalization() {
let language: SirenLanguageType = .Croatian
siren.forceLanguageLocalization = language

// Update Available
XCTAssertEqual(NSBundle().testLocalizedString("Update Available", forceLanguageLocalization: language), "Nova ažuriranje je stigla")

// Next time
XCTAssertEqual(siren.localizedNextTimeButtonTitle(), "Sljedeći put")

// Skip this version
XCTAssertEqual(siren.localizedSkipButtonTitle(), "Preskoči ovu verziju")

// Update
XCTAssertEqual(siren.localizedUpdateButtonTitle(), "Ažuriraj")
}

func testDanishLocalization() {
let language: SirenLanguageType = .Danish
siren.forceLanguageLocalization = language
Expand Down
1 change: 1 addition & 0 deletions Siren/Siren.swift
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ public enum SirenLanguageType: String {
case Basque = "eu"
case ChineseSimplified = "zh-Hans"
case ChineseTraditional = "zh-Hant"
case Croatian = "hr"
case Danish = "da"
case Dutch = "nl"
case English = "en"
Expand Down

0 comments on commit 180952e

Please sign in to comment.