Skip to content

Commit

Permalink
Add Crowdin and CF & MR projects
Browse files Browse the repository at this point in the history
  • Loading branch information
ThexXTURBOXx committed Feb 9, 2025
1 parent 3922bb0 commit 54c7497
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 22 deletions.
33 changes: 16 additions & 17 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}
Expand All @@ -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
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -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/1033985?logo=curseforge&style=flat-square)](https://www.curseforge.com/minecraft/mc-mods/balkons-weaponmod-legacy)
[![Modrinth Downloads](https://img.shields.io/modrinth/dt/MCF15nCy?logo=modrinth&style=flat-square)](https://modrinth.com/mod/balkons-weaponmod-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)-->
[![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.
Expand Down
10 changes: 10 additions & 0 deletions crowdin.yml
Original file line number Diff line number Diff line change
@@ -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"
}
]
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.
Expand Down
2 changes: 2 additions & 0 deletions src/main/resources/assets/exparmory/lang/en_US.lang
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 2 additions & 0 deletions src/main/resources/assets/exparmory/lang/zh_CN.lang
Original file line number Diff line number Diff line change
@@ -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=神秘流星槌
Expand Down

0 comments on commit 54c7497

Please sign in to comment.