Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Ghost-chu authored Dec 11, 2022
1 parent 4cb455c commit 8c4102c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class Test {
String crowdinFilePath = "/hikari/quickshop-bukkit/src/main/resources/lang/example.yml";
CrowdinOTA crowdinOTA = new CrowdinOTA(distributionUrl, myCacheFolder);
// I/O blocking operation, when you create a OTAFileInstance, it will download all translations
OTAFileInstance fileInstance = crowdinOTA.getOtaInstance().getFileInstance(crowdinFilePath, autoDownload);
OTAFileInstance fileInstance = crowdinOTA.getOtaInstance().getFileInstance(crowdinFilePath);
// Now get your translations!
System.out.println(fileInstance.getLocaleContentByCrowdinCode("zh-CN"));
System.out.println(fileInstance.getLocaleContentByCustomCode("locale", "uk-UA"));
Expand All @@ -45,4 +45,4 @@ We're on Maven Central.
<artifactId>crowdinota</artifactId>
<version>1.0.1</version>
</dependency>
```
```

0 comments on commit 8c4102c

Please sign in to comment.