This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
./gradlew generateProjectTranslations |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
plugins { | |
id("io.github.sarimmehdi.translate-genie") version "1.0.0" apply false | |
} | |
subprojects { | |
pluginManager.apply("com.sarim.translate-genie") | |
configure<TranslateGenieExtension> { | |
baseApiUrl = "https://libretranslate.com/translate" | |
keyForTextsToTranslate = "q" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pipeline { | |
agent any | |
stages { | |
stage('Generate Translations') { | |
steps { | |
sh './gradlew generateProjectTranslations' | |
} | |
} | |
stage('Commit Results') { | |
steps { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Generate Translations | |
on: | |
push: | |
paths: | |
- '**/src/main/res/values/strings.xml' | |
jobs: | |
translate: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Generated output for failed translation --> | |
<string name="complex_string">Original English text<!-- TODO: Translation failed --></string> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Module 1: 47 strings ] | |
Module 2: 23 strings ] → Batch 1 (50 strings) → API Call 1 | |
Module 3: 31 strings ] | |
Module 4: 19 strings ] → Batch 2 (50 strings) → API Call 2 | |
Module 5: 15 strings → Batch 3 (15 strings) → API Call 3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<string name="api_key" translatable="false">sk_live_abc123</string> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<plurals name="notification_count"> | |
<item quantity="zero">No notifications</item> | |
<item quantity="one">1 notification</item> | |
<item quantity="other">%d notifications</item> | |
</plurals> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<string-array name="navigation_items"> | |
<item>Home</item> | |
<item>Profile</item> | |
<item>Settings</item> | |
</string-array> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<string name="welcome_message">Welcome to our app!</string> |
NewerOlder