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
20082026
-
…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…
comment by doesntmeananyth · 2023-06-11 · in Fluent – A localization system for natural-sounding translations -
…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,…
comment by stasm · 2019-04-17 · in Fluent 1.0: a localization system for natural-sounding translations -
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...
comment by revskill · 2019-04-17 · in Fluent 1.0: a localization system for natural-sounding translations -
…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...
comment by ngrilly · 2019-04-17 · in Fluent 1.0: a localization system for natural-sounding translations -
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
comment by stasm · 2019-04-17 · in Fluent 1.0: a localization system for natural-sounding translations -
…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…
comment by stasm · 2019-04-17 · in Fluent 1.0: a localization system for natural-sounding translations -
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…
comment by yoz-y · 2018-04-06 · in Fluent: a localization system designed to improve how software is translated