-
Notifications
You must be signed in to change notification settings - Fork 45
ICU underneath? #216
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @tzutalin! The answer depends on the implementation. In JavaScript, I think most engines use ICU for formatting. At its core, Fluent is a specification of a syntax used to store translations (the Fluent grammar) and the logic to format them such that they are ready to be used in the UI (the Fluent runtime). Right now we've mostly focused on the grammar part while the runtime part still needs more work to be well-specified. Once we get there, the specification will likely dictate that implementations format numbers and dates according to the rules of the given language (e.g. by using existing i18n solutions, like ICU). Right now, we're focusing our efforts on three implementations listed below. I also know of a few more (C#, Elm) but I don't know what i18n solution they use.
Does this answer your question? |
Thanks for your explanation. You did answer my question and I also check the resource code. fluent.js used |
Hi,
Sorry, I didn't dive deeper beforehand. I have a quick question about the implementation of Fluent. How does Fluent do formatting? Do it use ICU formatting underneath, Fluent do the formatting on itself, or just use Intl formatting in JS? From my understanding, Intl is employing ICU.
The text was updated successfully, but these errors were encountered: