Skip to content

Commit c4e2aec

Browse files
committed
feat: add German (de_DE) localization support and update README
1 parent b764788 commit c4e2aec

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,14 @@
2323

2424
## Localization
2525

26-
| Language | Locale Code | Contributor | Status |
27-
|----------|-------------|-------------|--------|
26+
| Language | Locale Code | Contributor | Status |
27+
|-------------------|-------------|-------------------------------------------------|--------|
2828
| Chinese Simplified | `zh_CN` | [SnowCutieOwO](https://github.com/SnowCutieOwO) | v1.2.3 |
29-
| English | `en_US` | Core language | Latest |
30-
| Italian | `it_IT` | [RV_SkeLe](https://github.com/RVSkeLe) | v1.3.5 |
31-
| Turkish | `tr_TR` | berkkorkmaz | v1.3.5 |
32-
| Vietnamese | `vi_VN` | [maiminhdung](https://github.com/maiminhdung), [ptthanh02](https://github.com/ptthanh02) | Latest |
29+
| German | `de_DE` | [jannispkz](https://github.com/jannispkz) | Latest |
30+
| English | `en_US` | core language | Latest |
31+
| Italian | `it_IT` | [RV_SkeLe](https://github.com/RVSkeLe) | v1.3.5 |
32+
| Turkish | `tr_TR` | berkkorkmaz | v1.3.5 |
33+
| Vietnamese | `vi_VN` | [ptthanh02](https://github.com/ptthanh02) | Latest |
3334

3435
## API
3536

core/src/main/java/github/nighter/smartspawner/language/LanguageManager.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,7 @@ private void saveDefaultFiles() {
112112
Map<String, Set<LanguageFileType>> localeFileMap = new HashMap<>();
113113
localeFileMap.put("vi_VN", EnumSet.allOf(LanguageFileType.class));
114114
localeFileMap.put("DonutSMP", EnumSet.allOf(LanguageFileType.class));
115-
// localeFileMap.put("it_IT", EnumSet.allOf(LanguageFileType.class));
116-
// localeFileMap.put("tr_TR", EnumSet.allOf(LanguageFileType.class));
115+
localeFileMap.put("de_DE", EnumSet.allOf(LanguageFileType.class));
117116

118117
localeFileMap.forEach((locale, fileTypes) -> {
119118
fileTypes.forEach(fileType -> {

core/src/main/java/github/nighter/smartspawner/updates/LanguageUpdater.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public class LanguageUpdater {
1616
private final String currentVersion;
1717
private final SmartSpawner plugin;
1818
private static final String LANGUAGE_VERSION_KEY = "language_version";
19-
private static final List<String> SUPPORTED_LANGUAGES = Arrays.asList("en_US", "vi_VN");
19+
private static final List<String> SUPPORTED_LANGUAGES = Arrays.asList("en_US", "vi_VN", "de_DE");
2020

2121
// Track which file types to update
2222
private final Set<LanguageFileType> activeFileTypes = new HashSet<>();

0 commit comments

Comments
 (0)