Localize strings in code
This commit is contained in:
parent
2d5ca58bd9
commit
1b4040135e
36 changed files with 626 additions and 334 deletions
|
|
@ -38,8 +38,8 @@ class OtpTypeTest: XCTestCase {
|
|||
}
|
||||
|
||||
func testDescription() {
|
||||
XCTAssertEqual(OtpType(name: "totp").description, "time-based")
|
||||
XCTAssertEqual(OtpType(name: "hotp").description, "HMAC-based")
|
||||
XCTAssertEqual(OtpType(name: nil).description, "none")
|
||||
XCTAssertEqual(OtpType(name: "totp").description, "TimeBased".localize())
|
||||
XCTAssertEqual(OtpType(name: "hotp").description, "HmacBased".localize())
|
||||
XCTAssertEqual(OtpType(name: nil).description, "None".localize())
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue