We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24008cf commit 87a1299Copy full SHA for 87a1299
MJRefresh.podspec
@@ -1,6 +1,6 @@
1
Pod::Spec.new do |s|
2
s.name = 'MJRefresh'
3
- s.version = '3.1.8'
+ s.version = '3.1.9'
4
s.summary = 'An easy way to use pull-to-refresh'
5
s.homepage = 'https://github.com/CoderMJLee/MJRefresh'
6
s.license = 'MIT'
MJRefresh/NSBundle+MJRefresh.m
@@ -43,7 +43,7 @@ + (NSString *)mj_localizedStringForKey:(NSString *)key value:(NSString *)value
43
if ([language hasPrefix:@"en"]) {
44
language = @"en";
45
} else if ([language hasPrefix:@"zh"]) {
46
- if ([language containsString:@"Hans"]) {
+ if ([language rangeOfString:@"Hans"].location != NSNotFound) {
47
language = @"zh-Hans"; // 简体中文
48
} else { // zh-Hant\zh-HK\zh-TW
49
language = @"zh-Hant"; // 繁體中文
0 commit comments