Skip to content
This repository has been archived by the owner on Sep 14, 2024. It is now read-only.

intl for localization #187

Open
Leptopoda opened this issue Apr 3, 2023 · 2 comments
Open

intl for localization #187

Leptopoda opened this issue Apr 3, 2023 · 2 comments
Labels
enhancement New feature or request long-term Goal that will take a long time to achieve
Milestone

Comments

@Leptopoda
Copy link
Collaborator

I was thinking of switching the translation over to the intl package as it is the recommended way for flutter apps.

I've worked with it a many times and I quite like the code generation and the safety that all invocations will work.
It also has good pluralization support that the current flutter_translate package also recently added and we maybe can't use because we sit on an older downstream branch.

Sadly I have no idea how transifex handles the arb files or if it even supports them.
In general arb files are just json files with some cool extra metadata features so we might be able to just convert it.

It'd be great if someone could verify that.


More information on the recommended flutter translation flow can be found here: https://docs.flutter.dev/development/accessibility-and-localization/internationalization

@Teifun2
Copy link
Owner

Teifun2 commented Apr 4, 2023

I dont find the .arb files as supported file format of transifex :S
https://help.transifex.com/en/collections/3511306-for-developers#file-formats

I dont really remember why i used the special library, but at that time it was somehow the option that pleased me the most.

We could also check to update the downstream branch of flutter_translate. It is only used because it has the fallback language. Which is not supported in the main repo for reasons i cannot understand.

(If strings are not available in given langauge they are just representet with the keys. But i want it to default to english)

@Leptopoda
Copy link
Collaborator Author

how does the transifex bot work regarding new string?

Will it pick them up as soon as I merge a change to the english translation into develop?

@Leptopoda Leptopoda added the enhancement New feature or request label Apr 5, 2023
@Leptopoda Leptopoda added this to the 0.8 milestone Apr 7, 2023
@Leptopoda Leptopoda added the long-term Goal that will take a long time to achieve label Apr 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request long-term Goal that will take a long time to achieve
Projects
None yet
Development

No branches or pull requests

2 participants