News for hackers. Stuff that matters.
Re:Fluent – A localization system for natural-sounding trans... by doesntmeananyth on Sunday June 11, 2023 @03:23AM (#36279059)
I haven't tried Fluent yet, but—in theory—could you not have both the message identifier and the original string in your code?

Their React example kind of points towards this: https://github.com/projectfluent/fluent.js/wiki/React-Bindin...

They provide a <Localized> component, which has an identifier and wraps a piece of markup containing the original:

  <Localized id="hello">
      <h1>Hello, world!</h1>
  </Localized>
Seems like the best of both worlds.
Re:Fluent – A localization system for natural-sounding trans... by iudqnolq on Sunday June 11, 2023 @03:36PM (#36284819)
Per the docs the wrapped markup is to improve readability for devs, it isn't ever used. That seems like the worst of both worlds to me.