RFC: Message extraction #2036
Replies: 4 comments 18 replies
-
Question from @jurerotar:
Answer: Yep, namespaces are being considered, they are currently only briefly mentioned in regard to monorepos in the catalog generation section. E.g.: const t = useExtracted('namespace');
t('Hey there!'); … would generate e.g.: {
"namespace": {
"5VpL9Z": "Hey there"
}
} I think the point is valid and this should be clarified more visibly (and perhaps not just be a "future exploration"). The ultimate goal for Does that answer the question? |
Beta Was this translation helpful? Give feedback.
-
Quick poll: After reading the section on File formats & AI translation, which file format would you prefer as a default?
|
Beta Was this translation helpful? Give feedback.
-
Another poll: Do you prefer import {useExtracted} from 'next-intl';
function InlineMessages() {
const t = useExtracted();
return <h1>{t('Look ma, no keys!')}</h1>;
} import {useInlined} from 'next-intl';
function InlineMessages() {
const t = useInlined();
return <h1>{t('Look ma, no keys!')}</h1>;
} Please vote with your preference:
I'd also appreciate if you leave a comment here explaining why you prefer a particular option! (or why the alternative is bad) |
Beta Was this translation helpful? Give feedback.
-
Some thoughts on rich text formatting from @niieani:
I think it's an interesting approach, somewhere in the middle of using direct concatenation and using arguments in ICU strings. Kind of a hybrid solution in contrast to what the RFC currently discusses. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Please use this thread to share feedback related to the RFC on message extraction.
See also the polls below:
Beta Was this translation helpful? Give feedback.
All reactions