We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ba7ff8 commit 85f59d4Copy full SHA for 85f59d4
src/main/java/gregtech/api/mui/LocaleAccessor.java
@@ -1,6 +1,7 @@
1
package gregtech.api.mui;
2
3
import net.minecraft.client.resources.Locale;
4
+import net.minecraft.util.text.translation.I18n;
5
6
// todo remove in next mui2 version
7
public interface LocaleAccessor {
@@ -10,7 +11,9 @@ public interface LocaleAccessor {
10
11
ThreadLocal<LocaleAccessor> accessor = new ThreadLocal<>();
12
13
static String getRawKey(String s) {
- if (accessor.get() == null) return s;
14
+ if (accessor.get() == null) {
15
+ return I18n.localizedName.translateKey(s);
16
+ }
17
return accessor.get().gregtech$getRawKey(s);
18
}
19
0 commit comments