Skip to content

Commit

Permalink
Merge pull request ArtSabintsev#78 from thii/vi-localization
Browse files Browse the repository at this point in the history
Add Vietnamese localization
  • Loading branch information
ArtSabintsev committed Jul 27, 2016
2 parents 3818fcb + 6090905 commit 02c5a5f
Show file tree
Hide file tree
Showing 3 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 @@ -613,5 +613,22 @@ extension SirenTests {
// Update
XCTAssertEqual(NSBundle().testLocalizedString("Update", forceLanguageLocalization: language), "Güncelle")
}

func testVietnameseLocalization() {
let language: SirenLanguageType = .Vietnamese
siren.forceLanguageLocalization = language

// Update Available
XCTAssertEqual(NSBundle().testLocalizedString("Update Available", forceLanguageLocalization: language), "Cập nhật mới")

// Next time
XCTAssertEqual(NSBundle().testLocalizedString("Next time", forceLanguageLocalization: language), "Lần tới")

// Skip this version
XCTAssertEqual(NSBundle().testLocalizedString("Skip this version", forceLanguageLocalization: language), "Bỏ qua phiên bản này")

// Update
XCTAssertEqual(NSBundle().testLocalizedString("Update", forceLanguageLocalization: language), "Cập nhật")
}

}
Binary file not shown.
1 change: 1 addition & 0 deletions Siren/Siren.swift
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ public enum SirenLanguageType: String {
case Swedish = "sv"
case Thai = "th"
case Turkish = "tr"
case Vietnamese = "vi"
}

/**
Expand Down

0 comments on commit 02c5a5f

Please sign in to comment.