Skip to content

Commit

Permalink
build: update crowdin
Browse files Browse the repository at this point in the history
  • Loading branch information
Apehum committed Sep 28, 2024
1 parent ff4a33d commit 2d65a5f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion common/src/main/kotlin/su/plo/voice/groups/GroupsAddon.kt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import su.plo.voice.groups.group.Group
import java.io.File
import java.io.IOException
import java.io.InputStream
import java.net.URI
import java.util.*
import java.util.concurrent.CopyOnWriteArrayList

Expand Down Expand Up @@ -44,7 +45,7 @@ abstract class GroupsAddon : AddonInitializer {
val config = try {

voiceServer.languages.register(
"plasmo-voice-addons",
URI.create("https://github.com/plasmoapp/plasmo-voice-crowdin/archive/refs/heads/addons.zip").toURL(),
"server/groups.toml",
{ resourcePath ->
getLanguageResource(resourcePath) ?: throw IOException("Can't load language resource")
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plasmovoice = "2.1.0-SNAPSHOT"
config = "1.0.0"

plasmovoice-plugin = "1.0.2-SNAPSHOT"
crowdin-plugin = "1.0.2-SNAPSHOT"
crowdin-plugin = "1.1.0-SNAPSHOT"

[libraries]
config = { module = "su.plo.config:config", version.ref = "config" }
Expand Down
4 changes: 3 additions & 1 deletion jar/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import java.net.URI

plugins {
alias(libs.plugins.crowdin)
id("su.plo.voice.plugin.entrypoints")
Expand Down Expand Up @@ -32,7 +34,7 @@ sourceSets {
}

crowdin {
projectId = "plasmo-voice-addons"
url = URI.create("https://github.com/plasmoapp/plasmo-voice-crowdin/archive/refs/heads/addons.zip").toURL()
sourceFileName = "server/groups.toml"
resourceDir = "groups/languages"
createList = true
Expand Down

0 comments on commit 2d65a5f

Please sign in to comment.