mirror of
https://github.com/Lucaslah/WeatherChanger.git
synced 2026-01-09 04:29:26 +00:00
feat: make text translatable + bump to version 1.0.1
This commit is contained in:
@@ -5,6 +5,7 @@ import me.lucaslah.weatherchanger.config.WcMode;
|
||||
import me.lucaslah.weatherchanger.keybinding.Key;
|
||||
import net.minecraft.client.MinecraftClient;
|
||||
import net.minecraft.client.option.KeyBinding;
|
||||
import net.minecraft.client.resource.language.I18n;
|
||||
import net.minecraft.client.util.InputUtil;
|
||||
import net.minecraft.text.Text;
|
||||
import net.minecraft.util.Identifier;
|
||||
@@ -39,7 +40,7 @@ public class ToggleClearKey extends Key {
|
||||
|
||||
@Override
|
||||
public String getDisplayName() {
|
||||
return "Toggle Weather Clear";
|
||||
return I18n.translate("keys.weatherchanger.clear.name");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user