dart-lang / i18n

A general mono-repo for Dart i18n and l10n packages.
BSD 3-Clause "New" or "Revised" License
58 stars 34 forks source link

update intl_en.arb file #841

Closed Tigran-Kosemyan closed 1 month ago

Tigran-Kosemyan commented 1 month ago

I have an existing intl_en.arb file for my app's translations. I receive updated translations from a server, which include the same keys as those in the intl_en.arb file. How can I automatically update the existing intl_en.arb file with the new values from the server when running the app?

mosuem commented 1 month ago

I assume this is about package:intl_translation.

I don't understand your use case. Is this about having a script replacing the intl_en.arb at development time, and then rerunning the steps to use the arb file, or about changing translation messages at runtime?

Tigran-Kosemyan commented 1 month ago

I assume this is about package:intl_translation.

I don't understand your use case. Is this about having a script replacing the intl_en.arb at development time, and then rerunning the steps to use the arb file, or about changing translation messages at runtime?

I need update translations from server, using one arb file, and when change language get json from server with same keys in arb file, and update values

mosuem commented 1 month ago

So this should happen at runtime, with a compiled app?

mosuem commented 1 month ago

That sounds like a duplicate of https://github.com/dart-lang/i18n/issues/559.

Tigran-Kosemyan commented 1 month ago

okay thanks