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
merged 2 commits into from Jul 29, 2019

Conversation

@knoxHuang
Copy link
Contributor

commented Jul 26, 2019

用户反馈: https://forum.cocos.com/t/cc-sys-languagecode/81212/2

修复 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

minggo Jul 26, 2019

Contributor

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

@minggo
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
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.