Welcome to Translator, the go-to solution for developers seeking to implement versatile multilingual support in their applications!
Translator is a dynamic translation portal specifically designed for developers. With the ability to add new languages, efficiently update translations, and smoothly export translations into your applications, Translator equips you with powerful tools to enhance your app's multilingual capabilities.
- Hassle-free addition of new languages
- Efficient updating of translations
- Seamless exporting of translations
A basic understanding of the bench command-line tool is required to get started with Translator.
Clone the repository using the following command:
git clone https://github.com/empress-eco/translator.git
- To add a new language to your application, follow these steps:
# Add a new language via desk
bench use translate.YOUR-DOMAIN.com
bench translate-untranslated [language_code]
# Export new languages.json and commit it to the repo
bench execute Empress.core.doctype.language.language.export_languages_json
- Update the latest translations from your apps:
bench import-source-messages
- Update missing translations:
bench translate-untranslated-all
- Copy translations from one language to another:
bench copy-language [from] [to]
- Import the translations into your application:
# On Remote:
bench --site translate.YOUR-DOMAIN.com execute "translator.data.write_csv_for_all_languages"
# On local bench:
bench download-translations
We welcome contributions from everyone. Here's how you can contribute:
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
This project is licensed under the MIT License. Your contributions will also be licensed under the MIT License.
We express our profound gratitude to the Empress Community, whose innovative tools form the backbone of this project. Their dedication and pioneering work have been instrumental in building the foundations and functionalities we rely on. We are deeply appreciative of their support.