diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index e110a58..af09cec 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -26,20 +26,19 @@ jobs: distribution: 'temurin' cache: 'gradle' -# TODO: Setup Crowdin project -# - name: crowdin action -# uses: crowdin/github-action@v2 -# with: -# push_sources: false -# upload_sources: false -# push_translations: false -# upload_translations: false -# download_translations: false -# create_pull_request: false -# download_bundle: 6 -# env: -# CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }} -# CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }} + - name: crowdin action + uses: crowdin/github-action@v2 + with: + push_sources: false + upload_sources: false + push_translations: false + upload_translations: false + download_translations: false + create_pull_request: false + download_bundle: 10 + env: + CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }} + CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }} - name: Set mod_version run: sed -i -E "s/(mod_version\s*=\s*).+/\1${{ env.MOD_VERSION }}/" gradle.properties @@ -51,7 +50,7 @@ jobs: uses: Kir-Antipov/mc-publish@v3 with: github-token: ${{ secrets.GITHUB_TOKEN }} - files: CREDITS + files: LICENSE name: 1.7.10-${{ env.MOD_VERSION }} version: 1.7.10-${{ env.MOD_VERSION }} github-tag: 1.7.10-${{ env.MOD_VERSION }} @@ -61,9 +60,9 @@ jobs: - name: Publish Forge build to CurseForge and Modrinth uses: Kir-Antipov/mc-publish@v3 with: - # TODO modrinth-id: MCF15nCy + modrinth-id: 75W8JAu2 modrinth-token: ${{ secrets.MODRINTH_TOKEN }} - # TODO curseforge-id: 1033985 + curseforge-id: 1197267 curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }} files: | build/libs/*-${{ env.MOD_VERSION }}.jar diff --git a/README.md b/README.md index 1587cf8..8a1b392 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ # Expanded Armory: Legacy [![Workflow status](https://img.shields.io/github/actions/workflow/status/ThexXTURBOXx/Expanded-Armory-Legacy/build.yml?logo=githubactions&style=flat-square)](https://github.com/ThexXTURBOXx/Expanded-Armory-Legacy/actions/workflows/build.yml) - +[![CurseForge Downloads](https://img.shields.io/curseforge/dt/1197267?logo=curseforge&style=flat-square)](https://www.curseforge.com/minecraft/mc-mods/expanded-armory-legacy) +[![Modrinth Downloads](https://img.shields.io/modrinth/dt/75W8JAu2?logo=modrinth&style=flat-square)](https://modrinth.com/mod/expanded-armory-legacy) +[![Translate on Crowdin](https://img.shields.io/static/v1?label=Translate&message=on%20Crowdin&logo=crowdin&style=flat-square)](https://crowdin.com/project/balkons-weaponmod-legacy) [![Sponsor me!](https://img.shields.io/github/sponsors/ThexXTURBOXx?logo=github&style=flat-square)](https://github.com/sponsors/ThexXTURBOXx) Expanded Armory: Legacy is a simple mod, it takes the tool materials from other mods and brings them to Balkon's WeaponMod: Legacy. diff --git a/crowdin.yml b/crowdin.yml new file mode 100644 index 0000000..19bef37 --- /dev/null +++ b/crowdin.yml @@ -0,0 +1,10 @@ +"api_token_env": "CROWDIN_PERSONAL_TOKEN" +"project_id_env": "CROWDIN_PROJECT_ID" +"preserve_hierarchy": true + +"files": [ + { + "source": "src/main/resources/assets/exparmory/lang/en_US.lang", + "translation": "src/main/resources/assets/exparmory/lang/%language%.lang" + } +] diff --git a/gradle.properties b/gradle.properties index 638e9cb..f7cd231 100644 --- a/gradle.properties +++ b/gradle.properties @@ -10,7 +10,7 @@ forge_version_range = [10,) loader_version_range = [10,) bwm_version_curse = 6172631 -bwm_version_range = [1.20.0,2.0.0) +bwm_version_range = [1.23.0,2.0.0) mod_id = exparmory mod_name = Expanded Armory: Legacy @@ -21,7 +21,7 @@ mod_authors_list = mallrat208", "HyperSpeeed mod_description = Expanded Armory: Legacy is an add-on for Balkon's WeaponMod: Legacy that increases the number of materials that can be made into weapons mod_issues_url = https://github.com/ThexXTURBOXx/Expanded-Armory-Legacy/issues mod_sources_url = https://github.com/ThexXTURBOXx/Expanded-Armory-Legacy -mod_home_url = TODO_CURSEFORGE_LINK +mod_home_url = https://www.curseforge.com/minecraft/mc-mods/expanded-armory-legacy mod_update_json = https://raw.githubusercontent.com/ThexXTURBOXx/UpdateJSONs/master/expanded-armory.json # Sets default memory used for gradle commands. Can be overridden by user or command line properties. diff --git a/src/main/resources/assets/exparmory/lang/en_US.lang b/src/main/resources/assets/exparmory/lang/en_US.lang index a2f5648..5a2817e 100644 --- a/src/main/resources/assets/exparmory/lang/en_US.lang +++ b/src/main/resources/assets/exparmory/lang/en_US.lang @@ -1,3 +1,5 @@ +_comment=Expanded Armory language file en_US + item.battleaxe.thaumium.name=Thaumium Battleaxe item.boomerang.thaumium.name=Thaumium Boomerang item.flail.thaumium.name=Thaumium Flail diff --git a/src/main/resources/assets/exparmory/lang/zh_CN.lang b/src/main/resources/assets/exparmory/lang/zh_CN.lang index 4318bdf..1bd68e9 100644 --- a/src/main/resources/assets/exparmory/lang/zh_CN.lang +++ b/src/main/resources/assets/exparmory/lang/zh_CN.lang @@ -1,3 +1,5 @@ +_comment=Expanded Armory language file zh_CN, translated by apheliotropism + item.battleaxe.thaumium.name=神秘战斧 item.boomerang.thaumium.name=神秘回旋鏢 item.flail.thaumium.name=神秘流星槌