Skip to content

Commit

Permalink
Use CurseForge for localizations
Browse files Browse the repository at this point in the history
Also use our new action to sync strings
  • Loading branch information
p3lim committed Feb 15, 2025
1 parent ca864cd commit 93a6e03
Show file tree
Hide file tree
Showing 15 changed files with 49 additions and 195 deletions.
92 changes: 0 additions & 92 deletions .github/ISSUE_TEMPLATE/translate.yaml

This file was deleted.

35 changes: 0 additions & 35 deletions .github/workflows/translate-pr.yml

This file was deleted.

29 changes: 0 additions & 29 deletions .github/workflows/update-template.yml

This file was deleted.

20 changes: 20 additions & 0 deletions .github/workflows/update-translations.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Upload localization strings to CurseForge

on:
push:
branches:
- master
tags-ignore:
- '**'

jobs:
template:
runs-on: ubuntu-latest
steps:
- name: Clone project
uses: actions/checkout@v4

- name: Upload localizations
uses: p3lim/curseforge-localizations@v1
env:
CF_API_KEY: ${{ secrets.CF_API_KEY }}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ Due to the nature of this addon, any other addons that deals with world quests o

## Translations

If you want to help translate Molinari, please use this form on GitHub:
<https://github.com/p3lim-wow/BetterWorldQuests/issues/new?template=translate.yaml>
If you want to help translate Better World Quests, please go here:
<https://legacy.curseforge.com/wow/addons/better-world-quests/localization>

## Feedback & issues

Expand Down
12 changes: 2 additions & 10 deletions locale/deDE.lua
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
-- this file is auto-generated by BigWigs Packager from CurseForge localizations
local L = select(2, ...).L('deDE')

Check warning on line 2 in locale/deDE.lua

View workflow job for this annotation

GitHub Actions / lint

unused variable 'L'

-- config
L['Map pin scale'] = 'Skalierung der Kartennadel'
L['The scale of world quest pins on the current map'] = 'Skalierung der Weltquest-Nadeln auf der aktuellen Karte'
L['Overview pin scale'] = 'Übersicht Nadelskala'
L['The scale of world quest pins on a parent/continent map'] = 'Skalierung der Weltquest-Nadeln auf einem Welt-/Kontinentkarte'
L['Pin size zoom factor'] = 'Zoomfaktor der Nadelgröße'
L['How much extra scale to apply when map is zoomed'] = 'Wie viel zusätzlicher Maßstab angewendet werden soll, wenn die Karte gezoomt wird?'
L['Hold key to hide'] = 'Zum Ausblenden die Taste gedrückt halten'
L['Hold this key to temporarily hide all world quests'] = 'Halte diese Taste gedrückt, um alle Weltquests vorübergehend auszublenden'
--@localization(locale="deDE", format="lua_additive_table", handle-unlocalized="blank")@
4 changes: 3 additions & 1 deletion locale/esES.lua
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
local L = select(2, ...).L('esES') -- luacheck: ignore
-- this file is auto-generated by BigWigs Packager from CurseForge localizations
local L = select(2, ...).L('esES')

Check warning on line 2 in locale/esES.lua

View workflow job for this annotation

GitHub Actions / lint

unused variable 'L'
--@localization(locale="esES", format="lua_additive_table", handle-unlocalized="blank")@
4 changes: 3 additions & 1 deletion locale/esMX.lua
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
local L = select(2, ...).L('esMX') -- luacheck: ignore
-- this file is auto-generated by BigWigs Packager from CurseForge localizations
local L = select(2, ...).L('esMX')

Check warning on line 2 in locale/esMX.lua

View workflow job for this annotation

GitHub Actions / lint

unused variable 'L'
--@localization(locale="esMX", format="lua_additive_table", handle-unlocalized="blank")@
4 changes: 3 additions & 1 deletion locale/frFR.lua
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
local L = select(2, ...).L('frFR') -- luacheck: ignore
-- this file is auto-generated by BigWigs Packager from CurseForge localizations
local L = select(2, ...).L('frFR')

Check warning on line 2 in locale/frFR.lua

View workflow job for this annotation

GitHub Actions / lint

unused variable 'L'
--@localization(locale="frFR", format="lua_additive_table", handle-unlocalized="blank")@
4 changes: 3 additions & 1 deletion locale/itIT.lua
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
local L = select(2, ...).L('itIT') -- luacheck: ignore
-- this file is auto-generated by BigWigs Packager from CurseForge localizations
local L = select(2, ...).L('itIT')

Check warning on line 2 in locale/itIT.lua

View workflow job for this annotation

GitHub Actions / lint

unused variable 'L'
--@localization(locale="itIT", format="lua_additive_table", handle-unlocalized="blank")@
4 changes: 3 additions & 1 deletion locale/koKR.lua
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
local L = select(2, ...).L('koKR') -- luacheck: ignore
-- this file is auto-generated by BigWigs Packager from CurseForge localizations
local L = select(2, ...).L('koKR')

Check warning on line 2 in locale/koKR.lua

View workflow job for this annotation

GitHub Actions / lint

unused variable 'L'
--@localization(locale="koKR", format="lua_additive_table", handle-unlocalized="blank")@
4 changes: 3 additions & 1 deletion locale/ptBR.lua
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
local L = select(2, ...).L('ptBR') -- luacheck: ignore
-- this file is auto-generated by BigWigs Packager from CurseForge localizations
local L = select(2, ...).L('ptBR')

Check warning on line 2 in locale/ptBR.lua

View workflow job for this annotation

GitHub Actions / lint

unused variable 'L'
--@localization(locale="ptBR", format="lua_additive_table", handle-unlocalized="blank")@
4 changes: 3 additions & 1 deletion locale/ruRU.lua
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
local L = select(2, ...).L('ruRU') -- luacheck: ignore
-- this file is auto-generated by BigWigs Packager from CurseForge localizations
local L = select(2, ...).L('ruRU')

Check warning on line 2 in locale/ruRU.lua

View workflow job for this annotation

GitHub Actions / lint

unused variable 'L'
--@localization(locale="ruRU", format="lua_additive_table", handle-unlocalized="blank")@
14 changes: 2 additions & 12 deletions locale/zhCN.lua
Original file line number Diff line number Diff line change
@@ -1,13 +1,3 @@
-- this file is auto-generated by BigWigs Packager from CurseForge localizations
local L = select(2, ...).L('zhCN')

Check warning on line 2 in locale/zhCN.lua

View workflow job for this annotation

GitHub Actions / lint

unused variable 'L'

-- config
L['Map pin scale'] = '地图任务标记缩放'
L['The scale of world quest pins on the current map'] = '当前地图上世界任务标记的缩放比例'
L['Overview pin scale'] = '概览地图任务标记缩放'
L['The scale of world quest pins on a parent/continent map'] = '在主地图/大陆地图上的世界任务标记的缩放比例'
L['Pin size zoom factor'] = '任务标记缩放比例'
L['How much extra scale to apply when map is zoomed'] = '当放大地图时任务标记的额外缩放比例'
L['Show events on continent'] = '在大陆地图上显示事件'
L['Show on Azeroth'] = '在艾泽拉斯上显示'
L['Hold key to hide'] = '按住此键隐藏'
L['Hold this key to temporarily hide all world quests'] = '按住此键临时隐藏所有世界任务'
--@localization(locale="zhCN", format="lua_additive_table", handle-unlocalized="blank")@
10 changes: 2 additions & 8 deletions locale/zhTW.lua
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
-- this file is auto-generated by BigWigs Packager from CurseForge localizations
local L = select(2, ...).L('zhTW')

Check warning on line 2 in locale/zhTW.lua

View workflow job for this annotation

GitHub Actions / lint

unused variable 'L'

-- config
L['Map pin scale'] = '地圖標記點大小'
L['The scale of world quest pins on the current map'] = '在當前地圖的世界任務標記點大小'
L['Overview pin scale'] = '總覽標記點大小'
L['The scale of world quest pins on a parent/continent map'] = '在大陸地圖的世界任務標記點大小'
L['Pin size zoom factor'] = '標記點大小縮放係數'
L['How much extra scale to apply when map is zoomed'] = '縮放地圖時要應用多少額外的縮放'
--@localization(locale="zhTW", format="lua_additive_table", handle-unlocalized="blank")@

0 comments on commit 93a6e03

Please sign in to comment.