mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-01 02:46:41 +00:00
save strings.json
This commit is contained in:
@ -131,7 +131,7 @@ public interface TranslatableComponent extends BuildableComponent<TranslatableCo
|
||||
|
||||
// FAWE added
|
||||
@Nonnull
|
||||
static TranslatableComponent of(@Nonnull final String key, final Object... args) {
|
||||
public static TranslatableComponent of(@Nonnull final String key, final Object... args) {
|
||||
List<Component> components = Arrays.stream(args)
|
||||
.map(arg -> arg instanceof Component ? (Component) arg : TextComponent.of(Objects.toString(arg)))
|
||||
.collect(Collectors.toList());
|
||||
|
@ -139,7 +139,7 @@ public class TranslationManager {
|
||||
return false;
|
||||
}
|
||||
|
||||
private Map<String, String> getTranslationMap(Locale locale) {
|
||||
public Map<String, String> getTranslationMap(Locale locale) {
|
||||
Map<String, String> translations = translationMap.get(locale);
|
||||
if (translations == null) {
|
||||
if (tryLoadTranslations(locale)) {
|
||||
|
Reference in New Issue
Block a user