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

@knoxHuang knoxHuang 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();
Copy link

@minggo minggo Jul 26, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里直接 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants