Skip to content
This repository has been archived by the owner on Nov 22, 2020. It is now read-only.

Commit

Permalink
Add Ukrainian localization (#183)
Browse files Browse the repository at this point in the history
* Add Ukrainian localization

* Add tests for Ukrainian localization

* Minor fix constant mistype
  • Loading branch information
dimacheverda authored and ArtSabintsev committed Oct 20, 2017
1 parent e7416c2 commit 85ad0f0
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
Binary file not shown.
1 change: 1 addition & 0 deletions Harpy/Harpy.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ FOUNDATION_EXPORT NSString * const HarpyLanguageSwedish;
FOUNDATION_EXPORT NSString * const HarpyLanguageSpanish;
FOUNDATION_EXPORT NSString * const HarpyLanguageThai;
FOUNDATION_EXPORT NSString * const HarpyLanguageTurkish;
FOUNDATION_EXPORT NSString * const HarpyLanguageUkrainian;
FOUNDATION_EXPORT NSString * const HarpyLanguageUrdu;
FOUNDATION_EXPORT NSString * const HarpyLanguageVietnamese;

Expand Down
1 change: 1 addition & 0 deletions Harpy/Harpy.m
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
NSString * const HarpyLanguageSpanish = @"es";
NSString * const HarpyLanguageThai = @"th";
NSString * const HarpyLanguageTurkish = @"tr";
NSString * const HarpyLanguageUkrainian = @"uk";
NSString * const HarpyLanguageUrdu = @"ur";
NSString * const HarpyLanguageVietnamese = @"vi";

Expand Down
9 changes: 9 additions & 0 deletions HarpyExample/HarpyExampleTests/HarpyTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,15 @@ - (void)testTurkishLocalization {
XCTAssertTrue([[_harpy testLocalizedStringForKey:@"Update"] isEqualToString:@"Güncelle"]);
}

- (void)testUkrainianLocalization {
[_harpy setForceLanguageLocalization:HarpyLanguageUkrainian];

XCTAssertTrue([[_harpy testLocalizedStringForKey:@"Update Available"] isEqualToString:@"Доступне Оновлення"]);
XCTAssertTrue([[_harpy testLocalizedStringForKey:@"Next time"] isEqualToString:@"Наступного разу"]);
XCTAssertTrue([[_harpy testLocalizedStringForKey:@"Skip this version"] isEqualToString:@"Пропустити версію"]);
XCTAssertTrue([[_harpy testLocalizedStringForKey:@"Update"] isEqualToString:@"Оновити"]);
}

- (void)testUrduLocalization {
[_harpy setForceLanguageLocalization:HarpyLanguageUrdu];

Expand Down

0 comments on commit 85ad0f0

Please sign in to comment.