Skip to content

Use translation override system

YuanYuanOwO edited this page Aug 16, 2024 · 6 revisions

This article has been moved to new location!

See: https://quickshop-community.github.io/QuickShop-Hikari-Documents/docs/modules/localization#customize-translations


QuickShop uses the Translation Override system to process the translations.

Translation Override system allows QuickShop to use translations in both cloud service and local customization files.

Get the original file from Github

Before using the override system, You must get the original translation file from the Github(because the local override file is an empty file).

Click Here

Search your locale and click in, then download the translation.

Override the OTA translation

Go to your locale OTA override folder:

MINECRAFT_SERVER_ROOT/plugins/QuickShop-Hikari/override/LOCALE_CODE/messages.yml

You should find a blank YAML format file, open it.

Copy the key and values from the original translation to override the file, then you can edit it what you want.

Picture is outdated, we're now using YAML syntax.

a1PtHRgB7eSTXcV

This picture shows the simplest case. If the string inside a section, you need also add structure. Feel free ask the developer.

It also supports overriding the text in the section.

Translation support MiniMessage

Make it work

Save and execute command /qs reload to make it works.

Updating

The override file won't automatically update, you must do it by yourself once our translation have new update.

DEBUG: How I can know which locale code that Minecraft using?

Type /qs debug in-game to turn on the debug mode, re-join the server or change the client language, the server console should print the locale code that you using.