Skip to content

Commit

Permalink
feat: update locale
Browse files Browse the repository at this point in the history
  • Loading branch information
DengSir committed Mar 28, 2024
1 parent 82810d6 commit f5af721
Show file tree
Hide file tree
Showing 10 changed files with 52 additions and 17 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/locale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: locale
on: [push]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
with:
submodules: true

- uses: actions/setup-node@v3
with:
node-version: '16'

- name: Install wow-curse-tools
run: npm install --location=global wow-curse-tools

- name: Update locale files
run: wct locale export --token ${{ secrets.CURSE_TOKEN }}

- uses: GuillaumeFalourd/git-commit-push@v1.3
with:
commit_message: "chore: Update locale files"

5 changes: 3 additions & 2 deletions Localization/deDE.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@

local L = LibStub('AceLocale-3.0'):NewLocale('tdAuction', 'deDE')
local L = LibStub('AceLocale-3.0'):NewLocale(..., 'deDE')
if not L then return end

--@localization(locale=""deDE", format="lua_additive_table", table-name="L", same-key-is-true=true)@
-- @locale:language=deDE@
-- @end-locale@
3 changes: 2 additions & 1 deletion Localization/enUS.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ if not L then
return
end

-- @localization(locale=""enUS", format="lua_additive_table", table-name="L", same-key-is-true=true)@
-- @locale:language=enUS@
-- @end-locale@

-- @debug@
-- @import@
Expand Down
5 changes: 3 additions & 2 deletions Localization/esES.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@

local L = LibStub('AceLocale-3.0'):NewLocale('tdAuction', 'esES')
local L = LibStub('AceLocale-3.0'):NewLocale(..., 'esES')
if not L then return end

--@localization(locale=""esES", format="lua_additive_table", table-name="L", same-key-is-true=true)@
-- @locale:language=esES@
-- @end-locale@
5 changes: 3 additions & 2 deletions Localization/frFR.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@

local L = LibStub('AceLocale-3.0'):NewLocale('tdAuction', 'frFR')
local L = LibStub('AceLocale-3.0'):NewLocale(..., 'frFR')
if not L then return end

--@localization(locale=""frFR", format="lua_additive_table", table-name="L", same-key-is-true=true)@
-- @locale:language=frFR@
-- @end-locale@
5 changes: 3 additions & 2 deletions Localization/itIT.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@

local L = LibStub('AceLocale-3.0'):NewLocale('tdAuction', 'itIT')
local L = LibStub('AceLocale-3.0'):NewLocale(..., 'itIT')
if not L then return end

--@localization(locale=""itIT", format="lua_additive_table", table-name="L", same-key-is-true=true)@
-- @locale:language=itIT@
-- @end-locale@
5 changes: 3 additions & 2 deletions Localization/koKR.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@

local L = LibStub('AceLocale-3.0'):NewLocale('tdAuction', 'koKR')
local L = LibStub('AceLocale-3.0'):NewLocale(..., 'koKR')
if not L then return end

--@localization(locale=""koKR", format="lua_additive_table", table-name="L", same-key-is-true=true)@
-- @locale:language=koKR@
-- @end-locale@
5 changes: 3 additions & 2 deletions Localization/ptBR.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@

local L = LibStub('AceLocale-3.0'):NewLocale('tdAuction', 'ptBR')
local L = LibStub('AceLocale-3.0'):NewLocale(..., 'ptBR')
if not L then return end

--@localization(locale=""ptBR", format="lua_additive_table", table-name="L", same-key-is-true=true)@
-- @locale:language=ptBR@
-- @end-locale@
5 changes: 3 additions & 2 deletions Localization/ruRU.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@

local L = LibStub('AceLocale-3.0'):NewLocale('tdAuction', 'ruRU')
local L = LibStub('AceLocale-3.0'):NewLocale(..., 'ruRU')
if not L then return end

--@localization(locale=""ruRU", format="lua_additive_table", table-name="L", same-key-is-true=true)@
-- @locale:language=ruRU@
-- @end-locale@
5 changes: 3 additions & 2 deletions Localization/zhTW.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@

local L = LibStub('AceLocale-3.0'):NewLocale('tdAuction', 'zhTW')
local L = LibStub('AceLocale-3.0'):NewLocale(..., 'zhTW')
if not L then return end

--@localization(locale=""zhTW", format="lua_additive_table", table-name="L", same-key-is-true=true)@
-- @locale:language=zhTW@
-- @end-locale@

0 comments on commit f5af721

Please sign in to comment.