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

Implement OS::get_locale_language() helper method #52740

Merged
merged 1 commit into from
Sep 16, 2021

Commits on Sep 16, 2021

  1. Implement OS::get_locale_language() helper method

    This method extracts the 2 or 3-letter language code from `OS::get_locale()`,
    making it easier for users to identify the "main" language code for users
    that might have different OS locales due to different OS or region, but
    should be matched to the same translation (e.g. "generic" Spanish).
    
    Fixes godotengine#40703.
    akien-mga committed Sep 16, 2021
    Configuration menu
    Copy the full SHA
    def99c7 View commit details
    Browse the repository at this point in the history