GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - projectfluent/fluent.js: JavaScript implementation of Project Fluent

BranchesTags
Open more actions menu

Latest commit

 

History

3,165 Commits
3,165 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
fluent-bundle
fluent-bundle
 
 
fluent-dedent
fluent-dedent
 
 
fluent-dom
fluent-dom
 
 
fluent-gecko
fluent-gecko
 
 
fluent-langneg
fluent-langneg
 
 
fluent-react
fluent-react
 
 
fluent-sequence
fluent-sequence
 
 
fluent-syntax
fluent-syntax
 
 
tools
tools
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
.gitmodules
.gitmodules
 
 
.prettierignore
.prettierignore
 
 
.tern-project
.tern-project
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
LICENSE
LICENSE
 
 
NOTICE
NOTICE
 
 
README.md
README.md
 
 
eslint.config.mjs
eslint.config.mjs
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
rollup.config.mjs
rollup.config.mjs
 
 
tsconfig.base.json
tsconfig.base.json
 
 
tsconfig.json
tsconfig.json
 
 
typedoc.json
typedoc.json
 
 
vitest.config.ts
vitest.config.ts
 
 

Repository files navigation

Project Fluent

Fluent.js is a JavaScript implementation of Project Fluent, a localization framework designed to unleash the expressive power of the natural language.

Project Fluent keeps simple things simple and makes complex things possible. The syntax used for describing translations is easy to read and understand. At the same time it allows, when necessary, to represent complex concepts from natural languages like gender, plurals, conjugations, and others.

Packages

Fluent.js consists of a set of packages which have different use-cases and can be installed independently of each other.

  • @fluent/bundle
  • @fluent/dedent
  • @fluent/dom
  • @fluent/langneg
  • @fluent/react
  • @fluent/sequence
  • @fluent/syntax

You can install each of the above packages via npm, e.g. npm install @fluent/react.
See the end of this README for instructions on how to build fluent.js locally.

Learn the FTL syntax

FTL is a localization file format used for describing translation resources. FTL stands for Fluent Translation List.

FTL is designed to be simple to read, but at the same time allows to represent complex concepts from natural languages like gender, plurals, conjugations, and others.

hello-user = Hello, { $username }!

Read the Fluent Syntax Guide in order to learn more about the syntax. If you're a tool author you may be interested in the formal EBNF grammar.

Discuss

We'd love to hear your thoughts on Project Fluent! Whether you're a localizer looking for a better way to express yourself in your language, or a developer trying to make your app localizable and multilingual, or a hacker looking for a project to contribute to, please do get in touch!

  • Discourse: https://discourse.mozilla.org/c/fluent

Get Involved

Fluent.js is open-source, licensed under the Apache License, Version 2.0. We encourage everyone to take a look at our code and we'll listen to your feedback.

Local Development

Hacking on fluent.js is easy! To quickly get started clone the repo:

$ git clone https://github.com/projectfluent/fluent.js.git
$ cd fluent.js

You'll need at least Node.js 20.19. Older versions are not supported.

Install the dependencies used by all packages, which are managed as npm workspaces:

$ npm install

Build and test all packages at once:

$ npm run dist

…which is equivalent to:

$ npm run clean
$ npm run build --workspaces
$ npm run lint
$ npm run test
$ npm run docs

Each package may also be built separately by running npm run build in its directory.

About

JavaScript implementation of Project Fluent

projectfluent.org/

Topics

formattingftlglobalizationi18ninternationalizationl10nlanguagelanguage-negotiationlocalelocalizationreacttranslation

Resources

Readme
Apache-2.0 license

Code of conduct

Code of conduct
Activity
Custom properties

Stars

1.0k stars

Watchers

15 watching

Forks

83 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.