Internationalization / localization for Kotlin code


#1

I am really missing i18n support for “normal” Kotlin projects in Intellij IDEA.
Android development has a very comfortable support for localizing all kinds of resources.
Intellij IDEA has some basic support for String localization but apparently this only works for Java code.
Is there really no solution for Kotlin?


#2

@tango24 can you provide which part is doesn’t works?


#3

I couldn’t make any of it work:

  • No inspection for Hard coded string literals
  • No quick fix for I18nize hard coded string literal
  • No Find usage in properties file
  • No navigation between properties and code
    All - I believe - provided by I18N plugin, which only works for Java code

Is there anything I missed to get this working?

Furthermore I really appreciate how Android integration shows actual text instead of resource key.
This works for Kotlin, but only in Android projects.


#4

Good catch. Probably make sense to create a feature request for that in kotl.in/issue