Skip to content

Commit

Permalink
feature: locale wiki
Browse files Browse the repository at this point in the history
  • Loading branch information
sakurawald committed Jul 26, 2024
1 parent 3d1f264 commit 596b8c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/java/generator/DocsGeneratorTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
public class DocsGeneratorTest {
public static final Gson GSON = new GsonBuilder().setPrettyPrinting().create();
public static final Path LOCALE_PATH = Path.of("fuji-fabric.wiki", "locale");
private static final String EN_US = "en-us";
private static final String EN_US = "en_us";

private String getLanguageCode(String fileName) {
fileName = fileName.replace(".json", "");
Expand Down Expand Up @@ -58,7 +58,7 @@ private void generate(Path jsonFile, String configFileName, String languageCode)
void generate() {
generate(new ConfigModel(), "config.json", EN_US);
generate(new SchedulerModel(), "scheduler.json", EN_US);
generate(LOCALE_PATH.resolve("zh-cn").resolve("config.json"), "config.json", "zh-cn");
generate(LOCALE_PATH.resolve("zh-cn").resolve("config.json"), "config.json", "zh_cn");
}

}

0 comments on commit 596b8c5

Please sign in to comment.