diff --git a/fluent-bundle/README.md b/fluent-bundle/README.md index fe5a5b27..ab5fc034 100644 --- a/fluent-bundle/README.md +++ b/fluent-bundle/README.md @@ -47,17 +47,8 @@ The API reference is available at https://projectfluent.org/fluent.js/bundle. - `Intl.DateTimeFormat` (standard, well-supported) - `Intl.NumberFormat` (standard, well-supported) -- `Intl.PluralRules` (standard, new in ECMAScript 2018) - -`Intl.PluralRules` may already be available in some engines. In most cases, -however, a polyfill will be required. We recommend [intl-pluralrules][]. - -```javascript -import "intl-pluralrules"; -import { FluentBundle } from "@fluent/bundle"; -``` +- `Intl.PluralRules` (standard, well-supported) See also the [Compatibility][] article on the `fluent.js` wiki. -[intl-pluralrules]: https://www.npmjs.com/package/intl-pluralrules [compatibility]: https://github.com/projectfluent/fluent.js/wiki/Compatibility diff --git a/fluent-react/README.md b/fluent-react/README.md index fb12b516..bc19828d 100644 --- a/fluent-react/README.md +++ b/fluent-react/README.md @@ -22,7 +22,7 @@ maximum flexibility, `@fluent/react` expects the developer to write a little bit of a setup code related to language negotiation and translation fetching. It makes `@fluent/react` unopinionated and suitable for many different scenarios. You will likely also need to install a few other packages: -`@fluent/bundle`, `@fluent/langneg` and `intl-pluralrules`. +`@fluent/bundle` and `@fluent/langneg`. Consult the [wiki][] for documentation on how to set up and use `@fluent/react`. diff --git a/package-lock.json b/package-lock.json index c1bf13f3..5c0acac4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -27,7 +27,6 @@ "esm": "^3.2.22", "fuzzer": "^0.2.1", "gh-pages": "^6.1.1", - "intl-pluralrules": "^1.0.0", "mocha": "^10.2.0", "prettier": "^3.2.5", "prettyjson": "^1.2.1", @@ -42,6 +41,7 @@ } }, "fluent-bundle": { + "name": "@fluent/bundle", "version": "0.18.0", "license": "Apache-2.0", "devDependencies": { @@ -53,6 +53,7 @@ } }, "fluent-dedent": { + "name": "@fluent/dedent", "version": "0.5.0", "license": "Apache-2.0", "engines": { @@ -61,6 +62,7 @@ } }, "fluent-dom": { + "name": "@fluent/dom", "version": "0.9.0", "license": "Apache-2.0", "dependencies": { @@ -76,6 +78,7 @@ } }, "fluent-gecko": { + "name": "@fluent/gecko", "version": "0.0.1", "license": "Apache-2.0", "devDependencies": { @@ -83,6 +86,7 @@ } }, "fluent-langneg": { + "name": "@fluent/langneg", "version": "0.7.0", "license": "Apache-2.0", "engines": { @@ -91,6 +95,7 @@ } }, "fluent-react": { + "name": "@fluent/react", "version": "0.15.2", "license": "Apache-2.0", "dependencies": { @@ -120,6 +125,7 @@ } }, "fluent-sequence": { + "name": "@fluent/sequence", "version": "0.8.0", "license": "Apache-2.0", "devDependencies": { @@ -135,6 +141,7 @@ } }, "fluent-syntax": { + "name": "@fluent/syntax", "version": "0.19.0", "license": "Apache-2.0", "devDependencies": { @@ -5545,12 +5552,6 @@ "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", "dev": true }, - "node_modules/intl-pluralrules": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/intl-pluralrules/-/intl-pluralrules-1.3.1.tgz", - "integrity": "sha512-sNYPls1Q4fyN0EGLFVJ7TIuaMWln01LupLozfIBt69rHK0DHehghMSz6ejfnSklgRddnyQSEaQPIU6d9TCKH3w==", - "dev": true - }, "node_modules/is-arrayish": { "version": "0.2.1", "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", diff --git a/package.json b/package.json index 21f18b45..4385abd9 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,6 @@ "esm": "^3.2.22", "fuzzer": "^0.2.1", "gh-pages": "^6.1.1", - "intl-pluralrules": "^1.0.0", "mocha": "^10.2.0", "prettier": "^3.2.5", "prettyjson": "^1.2.1", diff --git a/tools/format.js b/tools/format.js index ae3cabe7..76ec640e 100755 --- a/tools/format.js +++ b/tools/format.js @@ -7,7 +7,6 @@ const fs = require("fs"); const program = require("commander"); require = require("esm")(module); -require("intl-pluralrules"); const Fluent = require("../fluent-bundle/esm/index.js"); program diff --git a/tools/perf/benchmark.node.js b/tools/perf/benchmark.node.js index f60eacb8..d054d65f 100644 --- a/tools/perf/benchmark.node.js +++ b/tools/perf/benchmark.node.js @@ -3,7 +3,6 @@ const fs = require("fs"); const FluentBundle = require("../../fluent-bundle/index.js"); const FluentSyntax = require("../../fluent-syntax/index.js"); const { runTest } = require("./benchmark.common"); -require("intl-pluralrules"); const env = { readFile: path => {