Skip to content

Commit

Permalink
Setup for Crowdin translation
Browse files Browse the repository at this point in the history
  • Loading branch information
modmuss50 committed Feb 13, 2024
1 parent 7e37801 commit 34b7f92
Show file tree
Hide file tree
Showing 15 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
name: Build
on: [push, pull_request]

concurrency:
group: build-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
build:
strategy:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@
!/settings.gradle
!/checkstyle.xml
!/.editorconfig
!/crowdin.yml
3 changes: 3 additions & 0 deletions crowdin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
files:
- source: src/main/resources/lang/installer.properties
translation: src/main/resources/lang/installer_%locale_with_underscore%.properties
2 changes: 1 addition & 1 deletion src/main/java/net/fabricmc/installer/util/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public class Utils {
@Override
public ResourceBundle newBundle(String baseName, Locale locale, String format, ClassLoader loader, boolean reload) throws IllegalAccessException, InstantiationException, IOException {
final String bundleName = toBundleName(baseName, locale);
final String resourceName = toResourceName(bundleName, "properties");
final String resourceName = toResourceName(bundleName, "properties").toLowerCase(Locale.ROOT);

try (InputStream stream = loader.getResourceAsStream(resourceName)) {
if (stream != null) {
Expand Down

0 comments on commit 34b7f92

Please sign in to comment.