my Localization file (language.json) very big. So i want divide my file to multi file (language1.json, language2.json, language3.json...). How can i do? I really need this solution Thanks.
Multi Localization file in Starling Builder(3 posts) (2 voices)
For the game you can just implement the ILocalization interface and pass into UIBuilder.
For the editor, you can subclass DefaultLcalizationFileWrapper to read localization files and create your own ILocalization inside your class. This can be compiled to either EmbeddedTheme.swf or EmbeddedComponents.swf in the extensions project then you don't need to recompile the editor.
Then open setting/editor_template.json inside your workspace, find the “localizationWrapper” key and replace the value with your class.
I haven’t tried a customized localization on my own but it should work. Please let me know how it goes!
Thanks so much Johann Huang!!! i'll try it
You must log in to post.