prettier-plugin-intlayer weekly downloads statistics
By aymericzip · npm · Prettier plugins
Prettier plugin for Intlayer. Sorts t() locales (pinned locales first), plural() categories in CLDR order and enu() conditions by threshold, and adds .value where content is used as a string.
prettier-plugin-intlayer has 1,480 recorded weekly downloads on npm, an increase of 385% over the past 30 days, ranking #1970 of 3,247 tracked listings.
About prettier-plugin-intlayer
prettier-plugin-intlayer
Prettier plugin for Intlayer. It puts the keys of your translations in a fixed order every time Prettier formats a file.
| Helper | Order |
|---|---|
t() | pinned locales (en), then alphabetical |
plural() | CLDR: zero, one, two, few, many, other |
enu() | ascending threshold, fallback last (only if behavior-safe) |
select() | alphabetical, fallback last (implicit last-key fallback kept) |
The serialized .content.json nodes ({ "nodeType": "translation", … }) are
sorted the same way.
Installation
npm install --save-dev prettier prettier-plugin-intlayer
Or let intlayer init prettier install and configure it.
Usage
{
"plugins": ["prettier-plugin-intlayer"],
"intlayerPinnedLocales": ["en"],
"intlayerSortContentKeys": false
}
| Option | Default | Description |
|---|---|---|
intlayerPinnedLocales | ["en"] | Locales kept first in t(), in this order. [] sorts them all. |
intlayerSortContentKeys | false | In *.content.* files, also sort the dictionary content keys and nested objects. |
intlayerCollapseIdenticalTranslations | true | In *.content.* files, t({ en: 'Next.js', fr: 'Next.js' }) becomes 'Next.js'. |
intlayerNodeValueAccess | true | alt={content.alt} becomes alt={content.alt.value}, <h1>{content.title.value}</h1> becomes <h1>{content.title}</h1>. |
With editor.enabled: true, an Intlayer node is a renderable node rather than a
string; intlayerNodeValueAccess appends .value wherever a string is
required (native element attribute, string method) so the types keep holding.
Template literals, concatenation and String() accept any type and are left
alone. It also turns <h1>{content.title.value}</h1>
into <h1>{content.title}</h1> (React, Next.js, Preact, Solid, React Native),
so the visual editor can select the text.
Objects holding a spread, a computed key, a method or a duplicated key are left untouched. Comments move with their key.
Prettier runs one plugin per parser: if another plugin also replaces the JS/TS
parsers (e.g. prettier-plugin-tailwindcss), scope this one to *.content.*
files with an override.
Documentation: https://intlayer.org/doc/prettier
Description from the npm listing.
- format
- i18n
- internationalization
- intlayer
- prettier
- prettier-plugin
- sort
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (142)Similar npm Prettier plugins plugins
All 20 prettier-plugin-intlayer alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/prettier-plugin-intlayer. First seen Nov 10, 2026; last successful collection Dec 6, 2026. See the methodology.