Hacker GitHub

← All repos

projectfluent/fluent.js

View on GitHub ↗ ★ 1,010 JavaScript

JavaScript implementation of Project Fluent

7 mentions on Hacker News by 5 people: 0 stories, 7 comments · first 2018-04-06 · latest 2023-06-11

Mentions per year 7 mentions · busiest year 2019 (5)
20082026
  1. …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…
  2. …abstraction responsible for actually showing the translations somewhere in the UI. Take a look at https://github.com/projectfluent/fluent.js/wiki/DOM-Overlays in the experimental fluent-dom package, and their React equivalent,…
  3. This is how to pass variables to localized React Component. The API is elegant. Bravo to the team ! https://github.com/projectfluent/fluent.js/blob/master/fluen...
  4. …the IDs from the source code? Edit: Looks like there is some discussion about extraction here: https://github.com/projectfluent/fluent.js/wiki/React-Bindin...
  5. It's something that I definitely plan to add. There's even an open issue about it! https://github.com/projectfluent/fluent.js/issues/185
  6. …overlays the translation onto the source's structure. Hence, this feature is called Overlays. See https://github.com/projectfluent/fluent.js/wiki/React-Overla... . Here's how you could re-implement your example using fluent-react. Note…
  7. Thank you for the explanation! I would recommend linking this page: https://github.com/projectfluent/fluent.js/tree/master/fluen... (or some extract from it) more prominently and also put the supported languages up front. The project…