flutter
localizer intellij plugin
intellij plugin to ease the process of localizing hard coded strings in flutter projects.
![[2025] Flutter Localizer #1 IntelliJ Plugin flutter localizer intellij plugin](https://i0.wp.com/raw.githubusercontent.com/norbert515/flutter_localizer/master/github_res/showcase.gif?w=770&ssl=1)
installation
the plugin is still under development and therefore not available on the intellij plugin repository. either download flutter_localizer.zip or build the project yourself. then follow this guide on how to install plugins from a zip file.
usage
setup
![[2025] Flutter Localizer #1 IntelliJ Plugin build_text](https://i0.wp.com/raw.githubusercontent.com/norbert515/flutter_localizer/master/github_res/toolbar_setting.png?w=770&ssl=1)
you can supply up two json file paths which will be filled with the localized values.
next, you have to specify the code which should be generated. “$$” will be replaced by the key
in camelcase.
example:
s.of(context).$
![[2025] Flutter Localizer #1 IntelliJ Plugin dialog](https://i0.wp.com/raw.githubusercontent.com/norbert515/flutter_localizer/master/github_res/dialog.png?w=770&ssl=1)
localization
all you have to do is hover over a string, and press alt+enter (invoke the quick action command).
![[2025] Flutter Localizer #1 IntelliJ Plugin localize](https://i0.wp.com/raw.githubusercontent.com/norbert515/flutter_localizer/master/github_res/localize.png?w=770&ssl=1)
in the following dialog you have to specify the key for that given string. this should be in camel_case.
![[2025] Flutter Localizer #1 IntelliJ Plugin localize_dialog](https://i0.wp.com/raw.githubusercontent.com/norbert515/flutter_localizer/master/github_res/localize_dialog.png?w=770&ssl=1)
press “ok” and you are done!
keep in mind, this only updated the json file and the code to access it. if you are using a localization technique witch relies on code generation, you must run that code generator before you run the app!
Comments are closed.