You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying out the plugin and I've used the basic Groovy configuration for the project:
apply plugin: 'com.decathlon.phraseapp' // added after the kotlin-android plugin, and the android application plugin, if that info matters at all.
phraseapp {
authToken = 'token <token>'
projectId = '<projectId>'
mainLocaleId = '<localeId>' // not "en"
resFolders = ['src/main/res']
}
...and I have the beta 1 version of the plugin (classpath 'com.decathlon.phrase:phrase-gradle-plugin:1.0.0-beta01'), which at time of writing is the latest one.
The phraseappCheck runs successfully and phraseappUpload sends the locally created strings to the server. The problem is with phraseappDownload, which succeeds, but only downloads the other locales, which currently are empty, but doesn't get the newly added strings, or the updated strings from the server.
The folder structure for my project is standard, the default locale strings file is located at src/main/res/values/strings.xml and I have 2 more locales with string files at src/main/res/values-sv/strings.xml and src/main/res/values-fi/strings.xml.
Worth mentioning is that I have the Phrase Android Studio plugin that works as expected when I "pull" changes from the server, but I need this type of integration for our CI setup.
The text was updated successfully, but these errors were encountered:
Also I noticed that phraseappDownload works for the additional locales - if I add a string translation for either of the locales, it works as expected, so, only the default locale download doesn't work. I've tried different variations of the plugin configuration, like, changing the mainLocaleId, or even removing it, but it didn't make a difference.
OK, I've read the README again, and it seems that i was missing the overrideDefaultFile = true option, but now I've added it, and I still don't get the new strings created on the server side. The default locale file now IS downloading, with updated translations, but without the new keys. Maybe this is by design, but it breaks the pull based flow that we are using.
On a side note, the strings.xml file that's now downloaded is messing up the file formatting - uses tabs instead of the default Android Studio spaces :)
I'm trying out the plugin and I've used the basic Groovy configuration for the project:
...and I have the beta 1 version of the plugin (
classpath 'com.decathlon.phrase:phrase-gradle-plugin:1.0.0-beta01'
), which at time of writing is the latest one.The
phraseappCheck
runs successfully andphraseappUpload
sends the locally created strings to the server. The problem is withphraseappDownload
, which succeeds, but only downloads the other locales, which currently are empty, but doesn't get the newly added strings, or the updated strings from the server.The folder structure for my project is standard, the default locale strings file is located at
src/main/res/values/strings.xml
and I have 2 more locales with string files atsrc/main/res/values-sv/strings.xml
andsrc/main/res/values-fi/strings.xml
.Worth mentioning is that I have the Phrase Android Studio plugin that works as expected when I "pull" changes from the server, but I need this type of integration for our CI setup.
The text was updated successfully, but these errors were encountered: