Lessons From Linguistics: i18n Best Practices for Front-End Developers
shopify.engineering
Lessons From Linguistics: i18n Best Practices for Front-End Developers
1–10 of 102 posts
Re: Lessons From Linguistics: i18n Best Practices for Front-End Developers
#2Re: Lessons From Linguistics: i18n Best Practices for Front-End Developers
#3Re: Lessons From Linguistics: i18n Best Practices for Front-End Developers
#4 const message = defineMessage({
defaultMessage: 'Learn more about supported images.',
description: 'Footer text containing a hyperlink',
})
and the anchor element can be interpolated as: formatMessage(message, {
a: (chunks: ReactNode) => {chunks},
})
[0]: https://formatjs.ioRe: Lessons From Linguistics: i18n Best Practices for Front-End Developers
#5Re: Lessons From Linguistics: i18n Best Practices for Front-End Developers
#6Re: Lessons From Linguistics: i18n Best Practices for Front-End Developers
#7Re: Lessons From Linguistics: i18n Best Practices for Front-End Developers
#8Unfortunately, I expected from a Shopify Engineering blog that it would provide solutions to this problem like a JS library for i18n.
Disclaimer: As I'm not a frontend developer I'm not familiar with the ecosystem solutions.
Re: Lessons From Linguistics: i18n Best Practices for Front-End Developers
#9Re: Lessons From Linguistics: i18n Best Practices for Front-End Developers
#10As someone with a Polish partner, who also fluently speaks my own weird minority local language (Irish), I'm more than well aware of pluralisation pitfalls; Irish may have one of the most complex rulesets, so much so that I'm almost certain it isn't represented in CDLR (possibly can't be). But I see the plural pitfall brought up in so many of these guide - I've always been curious about other unexpected/unintuitive pitfalls across languages out there. Would love if there was a simple reference of the most interesting (starting with plurals I guess).