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
configure<TranslateGenieExtension> { | |
baseApiUrl = "https://your-custom-api.com/translate" | |
httpMethod = "POST" | |
keyForTextsToTranslate = "texts_to_translate" | |
keyForTargetLanguage = "target_language" | |
targetLanguagesList = listOf("es", "fr", "de") | |
responseKeyForTranslatedTextsArray = "results.translations" | |
additionalJsonBody = """{ | |
"format": "android", | |
"preserve_formatting": true, |
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
your-app/ | |
├── app/ | |
│ └── src/main/res/values/strings.xml (manual process) | |
├── authentication/ | |
│ └── src/main/res/values/strings.xml (manual process) | |
├── payment/ | |
│ └── src/main/res/values/strings.xml (manual process) | |
├── analytics/ | |
│ └── src/main/res/values/strings.xml (manual process) | |
└── core/ |
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
// Root build.gradle.kts - ONE configuration for ALL modules | |
subprojects { | |
pluginManager.apply(rootProject.libs.plugins.translateGeniePluginId.get().pluginId) | |
configure<TranslateGenieExtension> { | |
baseApiUrl = "https://api.your-translator.com/translate" | |
keyForTextsToTranslate = "q" | |
keyForTargetLanguage = "target" | |
targetLanguagesList = listOf("es", "fr", "de", "it", "ja") | |
responseKeyForTranslatedTextsArray = "translatedText" |
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
ecommerce-app/ | |
├── app/ (main application module) | |
├── user-authentication/ (login, registration) | |
├── product-catalog/ (product listings, search) | |
├── shopping-cart/ (cart, checkout) | |
├── payment-gateway/ (payment processing) | |
├── order-tracking/ (order history, tracking) | |
├── notifications/ (push notifications, alerts) | |
└── analytics/ (tracking, metrics) |
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
<resources> | |
<string name="login_title">Welcome Back</string> | |
<string name="email_hint">Enter your email</string> | |
<string name="password_hint">Password</string> | |
<string name="forgot_password">Forgot password?</string> | |
</resources> |
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
<resources> | |
<string name="cart_empty">Your cart is empty</string> | |
<string name="add_to_cart">Add to Cart</string> | |
<string name="checkout_button">Proceed to Checkout</string> | |
<plurals name="items_in_cart"> | |
<item quantity="one">%d item in cart</item> | |
<item quantity="other">%d items in cart</item> | |
</plurals> | |
</resources> |
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
<resources> | |
<string name="payment_method">Payment Method</string> | |
<string name="card_number">Card Number</string> | |
<string name="expiry_date">MM/YY</string> | |
<string name="payment_successful">Payment processed successfully</string> | |
</resources> |
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
ecommerce-app/ | |
├── user-authentication/ | |
│ └── src/main/res/ | |
│ ├── values/strings.xml | |
│ ├── values-es/strings.xml | |
│ ├── values-fr/strings.xml | |
│ └── values-de/strings.xml | |
├── shopping-cart/ | |
│ └── src/main/res/ | |
│ ├── values/strings.xml |