Fix localization issues and export strings for translation
Changelog-Fixed: Fix localization issues and export strings for translation Signed-off-by: Terry Yiu <git@tyiu.xyz> Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
@@ -20,39 +20,6 @@ final class ProfileViewTests: XCTestCase {
|
||||
// Put teardown code here. This method is called after the invocation of each test method in the class.
|
||||
}
|
||||
|
||||
func testFollowersCountString() throws {
|
||||
XCTAssertEqual(followersCountString(0, locale: enUsLocale), "Followers")
|
||||
XCTAssertEqual(followersCountString(1, locale: enUsLocale), "Follower")
|
||||
XCTAssertEqual(followersCountString(2, locale: enUsLocale), "Followers")
|
||||
Bundle.main.localizations.map { Locale(identifier: $0) }.forEach {
|
||||
for count in 1...10 {
|
||||
XCTAssertNoThrow(followersCountString(count, locale: $0))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func testFollowingCountString() throws {
|
||||
XCTAssertEqual(followingCountString(0, locale: enUsLocale), "Following")
|
||||
XCTAssertEqual(followingCountString(1, locale: enUsLocale), "Following")
|
||||
XCTAssertEqual(followingCountString(2, locale: enUsLocale), "Following")
|
||||
Bundle.main.localizations.map { Locale(identifier: $0) }.forEach {
|
||||
for count in 1...10 {
|
||||
XCTAssertNoThrow(followingCountString(count, locale: $0))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func testRelaysCountString() throws {
|
||||
XCTAssertEqual(relaysCountString(0, locale: enUsLocale), "Relays")
|
||||
XCTAssertEqual(relaysCountString(1, locale: enUsLocale), "Relay")
|
||||
XCTAssertEqual(relaysCountString(2, locale: enUsLocale), "Relays")
|
||||
Bundle.main.localizations.map { Locale(identifier: $0) }.forEach {
|
||||
for count in 1...10 {
|
||||
XCTAssertNoThrow(relaysCountString(count, locale: $0))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func testFollowedByString() throws {
|
||||
let profiles = test_damus_state().profiles
|
||||
|
||||
|
||||
Reference in New Issue
Block a user