comahe-de / i18n4k

Internationalization for Kotlin
Apache License 2.0
78 stars 9 forks source link

Issue with setting country specific locale for translations that are generated as source code #39

Closed trentkan closed 1 year ago

trentkan commented 1 year ago

I'm working off the 0.7.0-SNAPSHOT version on main. I've noticed that the locale objects do not get built correctly for any locale that is not registered at runtime but included as a sourceCodeLocale.

My steps are that I've defined the properties files and included the following in my build.gradle:

    i18n4k {
        sourceCodeLocales = listOf("en_US", "es_ES")
    }

The generated object is built and the resulting .locales call returns locales that have not been parsed out like they are if they are registered at runtime.

Screenshot 2023-10-31 at 2 35 09 PM

trentkan commented 1 year ago

Closing this issue. I didn't realize I had to run gradle publishToMavenLocal on the plugin itself within this project then update the plugin on my consuming project. Works as intended after following those steps 😄