Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve getCurrentLanguage to android #1784

merged 2 commits into from Jul 29, 2019


Copy link

commented Jul 26, 2019


修复 cc.sys.languageCode 在安卓平台无法获取完整语言地区码

@@ -128,7 +128,7 @@ void Application::setPreferredFramesPerSecond(int fps)

std::string Application::getCurrentLanguageCode() const
std::string language = getCurrentLanguageJNI();
std::string language = getCurrentLanguageCodeJNI();

This comment has been minimized.

Copy link

minggo Jul 26, 2019


这里直接 return getCurrentLanguageCodeJNI() 就可以了。

minggo approved these changes Jul 29, 2019
@jareguo jareguo merged commit f951240 into cocos-creator:v2.1.3 Jul 29, 2019
1 check passed
1 check passed
continuous-integration/travis-ci/pr The Travis CI build passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
3 participants
You can’t perform that action at this time.