flutter localizer intellij plugin
intellij plugin to ease the process of localizing hard coded strings in flutter projects.
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
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).$
localization
all you have to do is hover over a string, and press alt+enter (invoke the quick action command).
in the following dialog you have to specify the key for that given string. this should be in camel_case.
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.