bin/crowdin-cli in crowdin-cli-0.3.6 vs bin/crowdin-cli in crowdin-cli-0.3.7
- old
+ new
@@ -73,11 +73,11 @@
'%two_letters_code%' => lang['iso_639_1'],
'%three_letters_code%' => lang['iso_639_3'],
'%locale%' => lang['locale'],
'%locale_with_underscore%' => lang['locale'].gsub('-', '_'),
'%android_code%' => android_locale_code(lang['locale']),
- '%macosx_code%' => macosx_language_code(lang['crowdin_code']) + '.lproj',
+ '%osx_code%' => osx_language_code(lang['crowdin_code']) + '.lproj',
}
placeholders = pattern.inject([]){ |memo, h| memo << h.first[/%(.*)%/, 1] }
unless languages_mapping.nil?
@@ -183,11 +183,11 @@
else locale_code
end
return locale_code.sub('-', '-r')
end
-def macosx_language_code(language_code)
+def osx_language_code(language_code)
language_code = case language_code
when 'zh-TW' then 'zh-Hant'
when 'zh-CN' then 'zh-Hans'
else language_code
end
@@ -200,10 +200,10 @@
'%two_letters_code%',
'%three_letters_code%',
'%locale%',
'%locale_with_underscore%',
'%android_code%',
- '%macosx_code%',
+ '%osx_code%',
'%original_file_name%',
'%original_path%',
'%file_extension%',
'%file_name%',
]