@ember-intl/vite weekly downloads statistics
By ember-intl · npm · Vite plugins
Loads translations in v2 apps with ember-intl
@ember-intl/vite has 4,811 recorded weekly downloads on npm, a decrease of 28.0% over the past 30 days, ranking #1148 of 2,322 tracked listings.
About @ember-intl/vite
@ember-intl/vite
Loads translations in v2 apps with ember-intl
Quickstart
1. Install @ember-intl/vite as a development dependency.<sup>1,2</sup>
pnpm add -D @ember-intl/vite
<sup>1. V2 apps (Embroider + Vite) need this package.</sup>
<sup>2. V2 addons need it if their test app lives in the same package as the addon (not recommended).</sup>
2. In vite.config.{mjs,mts}, add loadTranslations to the list of plugins.
+ import { loadTranslations } from '@ember-intl/vite';
import { classicEmberSupport, ember, extensions } from '@embroider/vite';
import { babel } from '@rollup/plugin-babel';
import { defineConfig } from 'vite';
export default defineConfig({
plugins: [
classicEmberSupport(),
ember(),
babel({
babelHelpers: 'runtime',
extensions,
}),
+ loadTranslations(),
],
});
3. In tsconfig.json, add @ember-intl/vite/virtual to compilerOptions.types.
{
"compilerOptions": {
"types": [
"ember-source/types",
"@embroider/core/virtual",
"@glint/ember-tsc/types",
- "vite/client"
+ "vite/client",
+ "@ember-intl/vite/virtual"
]
}
}
4. Import the translations that you need, then call addTranslations to pass them to the intl service.
/* app/routes/application.ts */
import Route from '@ember/routing/route';
import { type Registry as Services, service } from '@ember/service';
+ import translationsForDeDe from 'virtual:ember-intl/translations/de-de';
+ import translationsForEnUs from 'virtual:ember-intl/translations/en-us';
export default class ApplicationRoute extends Route {
@service declare intl: Services['intl'];
beforeModel(): void {
this.setupIntl();
}
private setupIntl(): void {
+ this.intl.addTranslations('de-de', translationsForDeDe);
+ this.intl.addTranslations('en-us', translationsForEnUs);
+
this.intl.setLocale(['en-us']);
}
}
You can also make translations available in rendering and unit tests.
/* tests/helpers/index.ts */
import {
setupApplicationTest as upstreamSetupApplicationTest,
setupRenderingTest as upstreamSetupRenderingTest,
setupTest as upstreamSetupTest,
type SetupTestOptions,
} from 'ember-qunit';
+ import translationsForDeDe from 'virtual:ember-intl/translations/de-de';
+ import translationsForEnUs from 'virtual:ember-intl/translations/en-us';
function setupRenderingTest(hooks: NestedHooks, options?: SetupTestOptions) {
upstreamSetupRenderingTest(hooks, options);
// Additional setup for rendering tests can be done here.
+ hooks.beforeEach(function () {
+ const intl = this.owner.lookup('service:intl');
+
+ intl.addTranslations('de-de', translationsForDeDe);
+ intl.addTranslations('en-us', translationsForEnUs);
+ });
}
export { setupApplicationTest, setupRenderingTest, setupTest };
Optional: Create a configuration file.
Compatibility
ember-intlv9.0.0 or above- Node.js v22 or above
Contributing
See the Contributing guide for details.
License
This project is licensed under the MIT License.
Description from the npm listing.
- ember
- ember-intl
- i18n
- internationalization
- rollup-plugin
- vite-plugin
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 (122)Similar npm Vite plugins plugins
All 20 @ember-intl/vite 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/@ember-intl/vite. First seen Oct 16, 2026; last successful collection Oct 20, 2026. See the methodology.