I'm also rewriting a Flex app to Royale and there are things that I just
decided to forget the Flex way and embrace a Royale way.

For localization (you may find a thread about it) I have an interface with
all localization keys, several "as" files (each one for a specific
language) that implements the interface and for last a LocaleManager that
manages everything.

Than I can use something like this:
<TextInput text="{localeManager.localStrings.ClientName}"/>

Also this way the language can be switched at runtime without application
reboot or refresh.

Soon I will write an operating system utility to insert/update text in the
several languages and automatically update the several files in the project.




Maria Jose Esteve <mjest...@iest.com> escreveu no dia sexta, 29/04/2022
à(s) 11:34:

> I found it useful, I would add it. Let's let other members give their
> opinion...
> I can't tell you for sure but I think there have been several discussions
> on this topic (locale/resourceManager) on the list (Carlos, Alex, Josh,...)
>
> Hiedra
>
> -----Mensaje original-----
> De: cont...@cristallium.com <cont...@cristallium.com>
> Enviado el: viernes, 29 de abril de 2022 12:01
> Para: dev@royale.apache.org
> Asunto: Opinion about adding example project for locales use
>
> Hi,
>
> I had some difficulty using a Flex-like system for display text
> translation with Royale.
> So I made this working example which might be useful for peoples trying
> this.
> Could it be added  in the examples ?
>
> What do you think ?
>
> https://github.com/apache/royale-asjs/pull/1191
>
> Could you give me feedback ? (because I'm not sure to use the right coding
> way)
>
> Thanks
>
> Regards
>

Reply via email to