mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-11-28 00:34:19 +00:00
Restore language sync
- Bring back 5 commits a force push dropped from GitHub master (0aad88c30)
- Keep the thin Bukkit entry; port language sync into IrisRuntime
- Fetch guides through GitHubLanguageSource instead of the removed catalog
This commit is contained in:
commit
5769b0d4e8
53 files changed
+13688
-14119
No files matched your search
+1
@@ -65,6 +65,7 @@ public class ModdedLanguageCommandsTest {
|
||||
try (MockedStatic<IrisLanguage> language = mockStatic(IrisLanguage.class)) {
|
||||
language.when(IrisLanguage::activeLocale).thenReturn("en_US");
|
||||
language.when(IrisLanguage::availableLocales).thenReturn(Set.of("de_DE"));
|
||||
language.when(() -> IrisLanguage.displayName("de_DE")).thenReturn("German (Germany)");
|
||||
language.when(() -> IrisLanguage.plain(DirectorHelpMessages.BACK)).thenReturn("Back");
|
||||
CommandDispatcher<CommandSourceStack> dispatcher = new CommandDispatcher<>();
|
||||
new NativeCommandRegistration(dispatcher).register(NativeCommandRegistration.literal("iris").then(ModdedLanguageCommands.tree()));
|
||||
|
||||
Reference in new issue
Block a user