skip to Main Content

we want to support localisation for some iOS native popup, it should be depend on the localisation part in xcode, but how to maintain this part in Unity iOS postscript?

we have successfully added the localisation lproj files to the project, but the localisation part is still not updated, we can manually drag the plist.strings to the Unity-iPhone to add the localisation, but we want to implement it in post-script to automatically change it.

xcode-localisation-config

2

Answers


  1. Chosen as BEST ANSWER

    Finally, we found a solution that worked: using the Unity Localisation Package and adding the iOS metadata.

    After adding any string localization, the ios build will add localisation automatically.

    https://docs.unity3d.com/Packages/[email protected]/manual/index.html

    https://docs.unity3d.com/Packages/[email protected]/manual/iOS-App-Localization.html


  2. I don’t think there is any ready-to-use solution for such a task.

    However, I’m confident you can modify the project file as it is a text file (to be more precise, an xcodeproj is a directory rather than a file, as you can see by selecting "show package content" in the context menu in the finder).

    So:

    • save your project file anywhere,
    • add the localization you want to add
    • use any diff tool to compare two files (kDiff or something like that)
    • automate this diff in your script during the post process

    I’ve just added manually Catalan localization in XCode and my change looks like thatenter image description here

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search