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

Unrecognized Locale #3

Closed
huujiee opened this issue Dec 12, 2023 · 3 comments
Closed

Unrecognized Locale #3

huujiee opened this issue Dec 12, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@huujiee
Copy link

huujiee commented Dec 12, 2023

After uploading the app to the appstore, I received a warning:

Unrecognized Locale - The locale names used in localization directories at ( "Payload/Project.app/Frameworks/UnityFramework.framework/zh-rCN.lproj", "Payload/Project.app/Frameworks/UnityFramework.framework/zh-rTW.lproj", "Payload/Project.app/zh-rCN.lproj", "Payload/Project.app/zh-rTW.lproj" ) are invalid. iTunes supports BCP47 but not the UN M.49 specification. Refer to the Language and Locale Designations guide at https://developer.apple.com/library/content/documentation/MacOSX/Conceptual/BPInternational/LanguageandLocaleIDs/LanguageandLocaleIDs.html for more information on naming your language-specific directories.

It seems that iOS does not support LanguageCode "zh-rCN, zh-rTW".

After my attempts, I found that "zh-Hans, zh-Hant" is available on iOS, but an error is reported when compiling on the Android platform. "zh-rCN, zh-rTW" will have the above warning after uploading to the AppStore on the iOS platform, but it will be normal on the Android platform.

I'm not sure if I'm using it incorrectly, how to solve this problem correctly, looking forward to your reply, thank you.

Here is my "LocalizedAppTitle.json":

{
    "LocalizeAppNameOnAndroid": true,
    "LocalizeAppIconOnAndroid": false,
    "LocalizeAppNameOniOS": true,
    "LocalizeAppIconOniOS": false,
    "LocalizedData": [
        {
            "LanguageCode": "en",
            "AppName": "English",
            "AppShortName": "English",
            "AndroidIcon": {
                "instanceID": 0
            },
            "iOSIcon": {
                "instanceID": 0
            }
        },
        {
            "LanguageCode": "zh-rCN",
            "AppName": "简体中文",
            "AppShortName": "简体中文",
            "AndroidIcon": {
                "instanceID": 0
            },
            "iOSIcon": {
                "instanceID": 0
            }
        },
        {
            "LanguageCode": "zh-rTW",
            "AppName": "繁體中文",
            "AppShortName": "繁體中文",
            "AndroidIcon": {
                "instanceID": 0
            },
            "iOSIcon": {
                "instanceID": 0
            }
        }
    ],
    "DefaultLocalizedData": 0,
    "AndroidNameResource": "app_name",
    "AndroidIconResource": "app_icon"
}
@huujiee huujiee added the bug Something isn't working label Dec 12, 2023
@yasirkula
Copy link
Owner

According to this, zh-CN and zh-TW may work (just removing 'r'). Could you give it a try? If that doesn't work, I guess I'll have to hardcode zh-Hans and zh-Hant.

@huujiee
Copy link
Author

huujiee commented Dec 17, 2023

Thanks, I'll try it next time I submit an updated version of the app.

@huujiee
Copy link
Author

huujiee commented Feb 1, 2024

Sorry for not replying for so long. I tested it on the local device before and it worked normally. After I submitted the app to the AppStore for review, I no longer received the "Unrecognized Locale" warning. So far, AppStore review specialists have not approved my app, prompting that more time is needed for review, so I have not fully confirmed whether this problem has been resolved. But I'm sure it can work locally. Thank you very much for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants