-
-
Notifications
You must be signed in to change notification settings - Fork 36
Plans for v48 #1051
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
I have not yet found a use case for MF2 → MF1, but this has worked for MF1 → MF2 for quite a while already: import { mf1ToMessageData } from '@messageformat/icu-messageformat-1';
import { parse } from '@messageformat/parser';
import { stringifyMessage } from 'messageformat';
const mf1Msg = 'You have {numBooks, plural, one {# book} other {# books}}';
const mf2Msg = mf1ToMessageData(parse(mf1Msg));
stringifyMessage(mf2Msg);
For Fluent |
My company is definitely interested in this. We're considering starting to write MF2 messages as we explore implementing it, but converting them back to MF1 either just for production or for the whole translation process. As mentioned, until "localization tooling catches up". |
@bearfriend I would very much welcome your (or anyone else's) contributions towards that at https://github.com/messageformat/messageformat/tree/main/mf2/icu-messageformat-1. |
I noted somewhere else: --
I don't think the WG should specifically build migration utilities, localization support, etc. But we should encourage people to report on their efforts in these areas. We crave success stories!! Other than the function maintenance process, I hope that we do NOT change the spec much. Of course there will be typos and editorial improvements and of course there will be goof-ups or useful feedback. But, absent compelling evidence to the contrary, we should maintain a high bar on changes to the core spec. |
100% agree, but we need to find a good place. |
In the 2025-03-10 teleconference we agreed that I would create a PR to update goals.md. |
Sounds like these two statements potentially conflict, and settling one will (mostly) settle both:
Either way, I did start fiddling with converting back to MF1 with some success. |
To correct the above, messageformat is an OpenJS Foundation project. It is not a personal repo. |
Uh oh!
There was an error while loading. Please reload this page.
CLDR needs a summary of planned v48 features.
Here's a draft:
* "well-behaved" excludes choice format and partial selects, like
The text was updated successfully, but these errors were encountered: