PocketByte / LocoLaser

Localization tool to import localized strings from external source to your project.
Apache License 2.0
31 stars 1 forks source link

Unresolved reference: i18next #22

Open aacic opened 2 years ago

aacic commented 2 years ago

Compilation fails for the JS target for the common module with the error: /common/build/generated/locolaser/js/ru/pocketbyte/locolaser/kmpp/JsStringRepository.kt: (7, 8): Unresolved reference: i18next

build.gradle.kts:

plugins {
    id("ru.pocketbyte.locolaser")
    kotlin("multiplatform")
}
kotlin {
    js(IR) {
        browser {
            binaries.executable()
        }
    }
    sourceSets {
        val commonMain by getting {
            this.kotlin.srcDir("./build/generated/locolaser/common/")
            dependencies {
                api ("org.jetbrains.kotlin:kotlin-stdlib-common" )
            }
        }

        val jsMain by getting {
            this.kotlin.srcDirs("./build/generated/locolaser/js/")
            dependencies {
                api ("org.jetbrains.kotlin:kotlin-stdlib" )
                api ("org.jetbrains.kotlin:kotlin-stdlib-js" )
                api ("ru.pocketbyte.locolaser:i18next-externals:1.0" )
            }
        }
    }
}

dependencies {
    localize ("ru.pocketbyte.locolaser:resource-kotlin-mpp:2.2.1")
    localize ("ru.pocketbyte.locolaser:resource-json:2.2.1")

}