Translation
If you want to translate/change names of the categories, stat types, or achievements, you are at the right place.
All categories, stat types and achievements have their own translation in the database to allow creation of data using our API.
If you want to change translation of category, stat type or achievement name, you can do so in the locales/*.lua
files.
We will be using English as the example in this tutorial.
Changing Achievement Name or Description
Go to
locales/en.lua
file.Find
achievements
table.Find the achievement you want to change.
Change the
name
ordescription
field to your liking.This will override the name and description from database allowing you to change it to your liking.
Changing Stat Type Name
Go to
locales/en.lua
file.Find
stat_types
table.Find the stat type you want to change.
Change the
name
field to your liking.This will override the name from database allowing you to change it to your liking.
Changing Category Name
Go to
locales/en.lua
file.Find
categories
table.Find the category you want to change.
Change the
name
field to your liking.This will override the name from database allowing you to change it to your liking.
Adding a translation for new category, stat type or achievement
Go to
locales/en.lua
file.Add a new entry to the table you want to add translation to. (categories, stat_types, or achievements)
Category and Stat Type
As for categories and stat types, you can just add a simple key-value translation like this:
Achievement
Achievements are a bit more complex as they have a name and description.
Last updated