Skip to content

Commit

Permalink
correct readme
Browse files Browse the repository at this point in the history
  • Loading branch information
westnordost committed Mar 21, 2022
1 parent 4bec9ef commit 59b6162
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ task downloadPresets {
def slurper = new JsonSlurper()
slurper.parse(contentsUrl, "UTF-8").each {
if(it.type == "file") {
def filename = it.name.substring(0, it.name.lastIndexOf("."))
def filename = it.name.substring(0, it.name.indexOf("."))
def javaLanguageTag = Locale.forLanguageTag(filename.replace('@','-')).toLanguageTag()
def translationsUrl = new URL(it.download_url)
new File("$targetDir/${javaLanguageTag}.json").withOutputStream { it << translationsUrl.openStream() }
Expand Down

0 comments on commit 59b6162

Please sign in to comment.