mirror of
https://github.com/DiscordSRV/Ascension.git
synced 2025-01-12 20:01:21 +01:00
Possibly fix source path for crowdin-upload workflow, change to Path instead of File
This commit is contained in:
parent
38bc550175
commit
0d6158a49f
2
.github/workflows/crowdin-upload.yaml
vendored
2
.github/workflows/crowdin-upload.yaml
vendored
@ -27,7 +27,7 @@ jobs:
|
||||
upload_sources: true
|
||||
upload_translations: false
|
||||
download_translations: false
|
||||
source: "source.yaml"
|
||||
source: "i18n/source.yaml"
|
||||
translation: "/%original_path%/src/main/resources/translations/%three_letters_code%.yaml"
|
||||
project_id: ${{ secrets.CROWDIN_PROJECT_ID }}
|
||||
token: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
|
||||
|
@ -32,7 +32,6 @@ import org.spongepowered.configurate.objectmapping.meta.Processor;
|
||||
import org.spongepowered.configurate.serialize.SerializationException;
|
||||
import org.spongepowered.configurate.yaml.YamlConfigurationLoader;
|
||||
|
||||
import java.io.File;
|
||||
import java.nio.file.Path;
|
||||
import java.nio.file.Paths;
|
||||
import java.util.ArrayList;
|
||||
@ -104,7 +103,7 @@ public final class DiscordSRVTranslation {
|
||||
}
|
||||
|
||||
YamlConfigurationLoader.builder()
|
||||
.file(new File("i18n", "source.yaml"))
|
||||
.path(Paths.get("i18n", "source.yaml"))
|
||||
.build()
|
||||
.save(node);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user