优化语言设置 (#4362)

This commit is contained in:
Glavo
2025-08-31 00:18:25 +08:00
committed by GitHub
parent 73531dbf60
commit b7361c8da4
11 changed files with 108 additions and 80 deletions

View File

@@ -442,7 +442,7 @@ public class DefaultLauncher extends Launcher {
pair("${library_directory}", repository.getLibrariesDirectory(version).getAbsolutePath()),
pair("${classpath_separator}", File.pathSeparator),
pair("${primary_jar}", repository.getVersionJar(version).getAbsolutePath()),
pair("${language}", Locale.getDefault().toString()),
pair("${language}", Locale.getDefault().toLanguageTag()),
// defined by HMCL
// libraries_directory stands for historical reasons here. We don't know the official launcher