This demo app showcases the implementation of the Phrase SDK and Lokalise SDK for localization and internationalization purposes. It provides two build variants, each demonstrating the integration with one of the SDKs. By using this app, you can experience how these SDKs can simplify the process of managing translations in your mobile applications.
Localization is a crucial aspect of app development to ensure that your app can reach a wider audience by supporting multiple languages and regions. The Phrase SDK and Lokalise SDK are powerful tools that streamline the localization process by providing features like string management, translation workflows, and real-time collaboration with translators.
This demo app aims to illustrate how to integrate the Phrase SDK and Lokalise SDK into your Android application. It includes two build variants, one for each SDK, allowing you to compare and contrast the implementation and functionality of both.
- Two build variants: Phrase SDK and Lokalise SDK
- Demonstrates integration of the respective SDKs for localization
- Displays localized strings in different languages
- Easy management of translations and localization workflows
- Real-time collaboration with translators
- Simplified string management and synchronization
To get started with the Phrase SDK and Lokalise SDK demo app, follow the instructions below.
- Android Studio (version X or later)
- Git
-
Clone the repository:
git clone https://github.com/your-username/demo-app.git
-
Open the project in Android Studio.
-
Sync the project with Gradle files.
Before running the app, you need to configure the API keys for both the Phrase SDK and Lokalise SDK. To do this, follow the steps below:
-
Register for a free trial account at Phrase and Lokalise.
-
Obtain the API keys and Project IDs for both services.
-
Open the
strings.xml
or.phraseapp.yml
file. -
Replace the placeholders for the API keys and Project IDs with your own keys:
To switch between the Phrase SDK and Lokalise SDK build variants, follow these steps:
-
Open the Build Variants panel in Android Studio (usually located on the left side of the window).
-
Select the desired build variant:
- phraseDebug: Build variant with the Phrase SDK implementation.
- lokaliseDebug: Build variant with the Lokalise SDK implementation.
-
Build and run the app on an emulator or physical device.
-
Explore the app and observe the localized strings based on the chosen build variant.
Contributions are welcome! If you encounter any issues or have suggestions for improvements, please feel free to submit a pull request or open an issue in the repository.
This project is licensed under the MIT License. Feel free to use, modify, and distribute this code as per the terms of the license.