News for hackers. Stuff that matters.
Re:Fluent 1.0: a localization system for natural-sounding tr... by Zenbit_UX on Wednesday April 17, 2019 @09:42AM (#19682439)
Care to comment about how it might handle one bold word or a link mid sentence?
Re:Fluent 1.0: a localization system for natural-sounding tr... by stasm on Wednesday April 17, 2019 @10:36AM (#19682921)
When Fluent formats translations, it returns simple strings (in the sense of primitive computer types). They can include markup which is parsed by a higher-level 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, https://github.com/projectfluent/fluent.js/wiki/React-Overla....