vscode-flutter-i18n-json installs statistics
By esskar · VS Code Marketplace · Other
VS Code extension to create a binding between your translations from .json files and your Flutter app.
vscode-flutter-i18n-json has 166,851 recorded installs on VS Code Marketplace, an increase of 0.4% over the past 30 days, ranking #1750 of 2,515 tracked listings.
Rating: 5.00 / 5 from 3 ratings
About vscode-flutter-i18n-json
vscode-flutter-i18n-json
VS Code extension to create a binding between your translations from .json files and your Flutter app. You can also automagically generate translations for all your locales, based on Google Translate.
Installation
To install the extension just execute the following command:
ext install vscode-flutter-i18n-json
You may also install the extension from the [visual studio code marketplace][1].
Getting started
- Install the extension
- Open your project, open the command palette and find the
Flutter I18n Json: Initializecommand. - Enter a default locale, or press enter to use
en-US.

Commands
Flutter I18n Json: Initialize
Creates the inital binding between translations from .json files and your Flutter app. The command will ask you for the default locale, the locale that will be used when no other locale can be matched.
The following files will be created:
i18n/<default-locale>.json
lib/generated/i18n.dart
i18nconfig.json
Flutter I18n Json: Add locale
Adds another locale to your Flutter app. The command will ask you for a new locale.
The following files will be created:
i18n/<new-locale>.json
and updated:
lib/generated/i18n.dart
i18nconfig.json
Flutter I18n Json: Update
After you change or add any translations, run the update command to update
lib/generated/i18n.dart
to reflect your translation changes.
Flutter I18n Json: Remove locale
Removes an existing locale from your Flutter app. The command will ask you to pick a locale from the list of existing locales.
The following files will be removed:
i18n/<existing-locale>.json
and updated:
lib/generated/i18n.dart
i18nconfig.json
Flutter I18n Json: Set Google Translate API Code
Sets the API code for the Google Translate API.
To obtain an API key, you need to have an account with the Google Cloud Platform:
- Go to: https://console.developers.google.com/apis/dashboard
- Select (or create) a project
- Click button "Enable API's and services" (on top)
- Search for "Cloud Translation API"
- Click "Enable"
- Once enabled, go to the "Credentials" (left side) section on your API overview
- Click "Create credential" (top bar)
- In de text "We'll help you set up the correct credentials. If you want you can skip this step and create an API key, client ID or service account.", choose the link "API key".
- Give it a name and click "Create"
You can copy the key now.
The following file will be updated:
i18nconfig.json
Flutter I18n Json: Create automagic translations from default locale
Generates and adds missing translations to i18n/<locale>.json files, based on the translation keys and values in i18n/<default-locale>.json.
When using this command, you don't have to manually add every translation key and translated value to all i18n/<locale>.json files.
Usage
JSON
Use a simple key-value pair JSON format to define your translations.
{
"hello": "Hello"
}
In the above example "hello" is the key for the translation value "Hello!".
Placeholders are automatically detected and are enclosed in curly brackets ({}):
{
"greetTo": "Hello {name}"
}
Here, {name} is a placeholder within the translation value for "greetTo".
Dart
Let's add some translations in i18n/en-US.json:
{
"hello": "Hello!",
"greetTo": "Nice to meet you, {name}!"
}
After you run the update command, you will see that in lib/generated/i18n.dart, a getter hello and a method greetTo were created:
class I18n implements WidgetsLocalizations {
const I18n();
static const GeneratedLocalizationsDelegate delegate =
const GeneratedLocalizationsDelegate();
static I18n of(BuildContext context) =>
Localizations.of<I18n>(context, WidgetsLocalizations);
@override
TextDirection get textDirection => TextDirection.ltr;
String get hello => "Hello!";
String greetTo(String name) => "Nice to meet you, ${name}!";
}
Using the generated I18n class is showcased in the example below:
@override
Widget build(BuildContext context) {
final i18n = I18n.delegate;
return new MaterialApp(
localizationsDelegates: [
i18n
],
supportedLocales: i18n.supportedLocales,
localeResolutionCallback: i18n.resolution(fallback: new Locale("en", "US"))
// .. any other properties supported and required by your application
);
When translating something, simply call your translation like this:
I18n.of(context).hello
This returns a string you can direcly use in e.g. a Text() widget
Nesting
Nesting is supported which allows you to hierarchically structure the translations.
{
"hello": "hello!",
"greeting": {
"formal": "Hello",
"informal": "Hi",
"placeholder": {
"formal": "Hello {name}",
"informal": "Hi {name}"
}
}
}
The above file will generate the following dart code
/// "hello!"
String get hello => "hello!";
/// "Hello"
String get greetingFormal => "Hello";
/// "Hi"
String get greetingInformal => "Hi";
/// "Hello ${name}"
String greetingPlaceholderFormal(String name) => "Hello ${name}";
/// "Hi ${name}"
String greetingPlaceholderInformal(String name) => "Hi ${name}";
Arrays
Arrays of strings is supported too.
{
"hello": "hello!",
"greetings": [
"Hello",
"Hi"
]
}
The above file will generate the following dart code
/// "hello!"
String get hello => "hello!";
/// ["Hello", "Hi"]
List<String> get greetings => ["Hello", "Hi"];
Changing locale manually
Locale can be changed manually using static locale parameter. To make application reload from anywhere in the app you can use static onLocaleChanged callback:…
Description from the VS Code Marketplace listing.
- dart
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
Ratings over time
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. Installs on a linear scale. Placement is projected from installs, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (50)Similar VS Code Marketplace Other plugins
All 20 vscode-flutter-i18n-json alternativesData source
Install counts, average rating, and rating counts come from the public Visual Studio Marketplace gallery API. Installs are cumulative and exclude updates.
Listing: https://marketplace.visualstudio.com/items?itemName=esskar.vscode-flutter-i18n-json. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.