Text Replacement Compatibility - Gr770/UnifiedUICK3 GitHub Wiki

Writing Gui Files for Text Replacers

One of the main problems for text replacement and gui is that vanilla files rely on using the UI functions for localization by placing them directly in the gui files.

The best way to fix this issue in your mods is to replace those functions with localization keys. Localization keys can be directly replaced without the text replacer having to edit your ui files directly.

All you will need to do after that is to set up a loc file under localization/english/UNIUI (or another folder). File names should end with _l_english.yml and be formatted to UTF-8 BOM. The top line in the file should be l_english:

english can be replaced for each language you will support

The text for the loc keys can then directly use the same UI functions text as before. LOC_KEY: "[UIfunctions]"

Text Replacing in UNIUI

Text replacement is simple with UniUI all loc keys were moved to the folder UNIUI and can be replaced by copying the files and placing the files under the similar folder structure localization/english/replace/UNIUI

english can be replaced for each language you will support

From there you can use the similar datatypes to achieve new text results.