Skip to content

Commit

Permalink
chore: migrate en_US lang file enum
Browse files Browse the repository at this point in the history
  • Loading branch information
Phoube committed Jul 9, 2021
1 parent a550e98 commit 4e67f6a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/main/java/codes/biscuit/skyblockaddons/core/Language.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
public enum Language {

// listed by popularity
ENGLISH("en_us"),
ENGLISH("en_US"),
CHINESE_TRADITIONAL("zh_TW"),
CHINESE_SIMPLIFIED("zh_CN"),
HINDI("hi_IN"),
Expand Down Expand Up @@ -46,18 +46,18 @@ public enum Language {
SERBIAN_LATIN("sr_CS"),
SLOVENIAN("sl_SI"),
SWEDISH("sv_SE"),
UKRAINIAN("uk_UA"),
UKRAINIAN("uk_UA"),
PIRATE_ENGLISH("en_PT"),
LOLCAT("lol_US"),
BISCUITISH("bc_BC"),
OWO("ow_Wo");

private ResourceLocation resourceLocation;
private String path;
private final ResourceLocation resourceLocation;
private final String path;

Language(String path) {
this.path = path;
this.resourceLocation = new ResourceLocation("skyblockaddons", "flags/"+path.toLowerCase()+".png");
this.resourceLocation = new ResourceLocation("skyblockaddons", "flags/" + path.toLowerCase() + ".png");
}

/**
Expand Down

0 comments on commit 4e67f6a

Please sign in to comment.