fluent.js icon indicating copy to clipboard operation
fluent.js copied to clipboard

JavaScript implementation of Project Fluent

Results 104 fluent.js issues
Sort by recently updated
recently updated
newest added

I'm trying to pass a variable (`$week`) from my application, to a **selector** as an argument. ```fluent week-nb = Number: { $week } week-name = {-ordinal(num: $week, gender: "feminine") }...

We should allow users to control exactly how formatting errors are handled in `Localized` and `getString`. We could do it via a `` prop, which is a function taking an...

fluent-react

Fixes #544. It's similar to `getString`, but returns a React Fragment instead of a string. The main added benefit here is that it allows the caller to pass in `elems`...

Similar to how [`ajv`](https://ajv.js.org/packages/ajv-cli.html) allows compiling a JSON Schema into a validation function. The ability to compile a `ftl` file into am esm with tree shaking support. The interface I'm...

Bumps [terser](https://github.com/terser/terser) from 5.13.1 to 5.14.2. Changelog Sourced from terser's changelog. v5.14.2 Security fix for RegExps that should not be evaluated (regexp DDOS) Source maps improvements (#1211) Performance improvements in...

dependencies

We are usually using the `Localized` component, but recently I was trying the `withLocalization`'s `getString` API, and it looks like it is the missing the `elems` parameter, which is pretty...

fluent-react

Currently, https://github.com/projectfluent/fluent.js/blob/8991a1760a83f1f9d8900e325ecc83dcb636337c/fluent-langneg/src/locale.ts only allow the primary language subtag, and [extended language subtag](https://tools.ietf.org/html/bcp47#section-2.2.2) is not implemented. It also does not take into account of macrolanguages. For example, requesting `zh` when there...

The correct TS type here would be `this`: https://github.com/projectfluent/fluent.js/blob/a68c20eaea45ae8f948570e6b2ac13f2f0306b5b/fluent-syntax/src/ast.ts#L50

fluent-syntax
good first bug

Hello! Thank you for this great library! However, I'm building HTML messages with Fluent and I need to insert user-generated content into the final messages using placeables. The thing is...