doesntmeananyth

Joined 7 years ago

Karma
420
Submissions
26
Member since
Apr 5
View on Hacker News

Recent submissions

Comment · 3 years ago
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.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton