All Projects → itsmattburgess → laravel-translate

itsmattburgess / laravel-translate

Licence: other
Generate translation files for Laravel using Google Translate

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to laravel-translate

translation-generator
Generate translation files for your Angular project
Stars: ✭ 17 (-22.73%)
Mutual labels:  i18n, localization, google-translate
Domino-English-Translation
🌏 Let's translate Domino, a Japanese MIDI editor!
Stars: ✭ 29 (+31.82%)
Mutual labels:  i18n, localization
angular-i18n-localization
An angular application with i18n and localization implemented.
Stars: ✭ 22 (+0%)
Mutual labels:  i18n, localization
figma-static-localizer
A Figma plugin for static localization
Stars: ✭ 30 (+36.36%)
Mutual labels:  i18n, localization
typesafe-i18n
A fully type-safe and lightweight internationalization library for all your TypeScript and JavaScript projects.
Stars: ✭ 1,227 (+5477.27%)
Mutual labels:  i18n, localization
android-localization-helper
A python script that helps you create strings.xml for all languages in different hierarchical folder(using Google Translation API)
Stars: ✭ 19 (-13.64%)
Mutual labels:  localization, google-translate
rails
Rails translation made _('simple').
Stars: ✭ 65 (+195.45%)
Mutual labels:  i18n, localization
awesome-translations
😎 Awesome lists about Internationalization & localization stuff. l10n, g11n, m17n, i18n. Translations! 🌎🌍
Stars: ✭ 54 (+145.45%)
Mutual labels:  i18n, localization
android-studio-plugin
Integrate your Android project with Crowdin
Stars: ✭ 52 (+136.36%)
Mutual labels:  i18n, localization
react-i18next-phraseapp
Library support to use react-i18next with the Phrase In-Context Editor - DEPRECATED
Stars: ✭ 14 (-36.36%)
Mutual labels:  i18n, localization
poeditor-cli
POEditor CLI
Stars: ✭ 29 (+31.82%)
Mutual labels:  i18n, localization
go-localize
i18n (Internationalization and localization) engine written in Go, used for translating locale strings.
Stars: ✭ 45 (+104.55%)
Mutual labels:  i18n, localization
awesome-i18n
🌍 A curated list of i18n resources for all kind of languages and frameworks
Stars: ✭ 205 (+831.82%)
Mutual labels:  i18n, localization
msgtools
Tools for Developing Diagnostic Messages
Stars: ✭ 18 (-18.18%)
Mutual labels:  i18n, localization
asgi-babel
Adds internationalization (i18n) support to ASGI applications (Asyncio/Trio)
Stars: ✭ 21 (-4.55%)
Mutual labels:  i18n, localization
ad localize
ADLocalize is a simple way to manage your localization files. Supported wording sources : CSVs and Google Sheets. Localization file generation available for iOS, Android, JSON (i18next), YAML and Java properties
Stars: ✭ 22 (+0%)
Mutual labels:  i18n, localization
React Native Globalize
Internationalization (i18n) for React Native
Stars: ✭ 246 (+1018.18%)
Mutual labels:  i18n, localization
alternate
Plug and Phoenix helpers to localize your web app via the URL
Stars: ✭ 26 (+18.18%)
Mutual labels:  i18n, localization
i18n-command
Provides internationalization tools for WordPress projects.
Stars: ✭ 76 (+245.45%)
Mutual labels:  i18n, localization
I18N
I18N Library for .NET, and Delphi
Stars: ✭ 48 (+118.18%)
Mutual labels:  i18n, localization

Laravel Translate

Build Code Quality Coverage

Easily translate your laravel application using cloud translation APIs. This package finds all of your __() and trans() methods in your app/ and resources/ directories and translates each string using the API. Online translation APIs aren't perfect however, so its recommended that this package is used to give you a good starting point. Packages such as barryvdh/laravel-translation-manager and joedixon/laravel-translation can then be used to fine-tune your translations.

Installing

Installation is achieved using composer

composer require --dev itsmattburgess/laravel-translate

Configuration

You can configure how this package is implemented using the config file in config/translate.php. You first need to publish this config file using the command below:

php artisan vendor:publish --provider="itsmattburgess\LaravelTranslate\TranslationServiceProvider"

In this config file, you can specify the methods that contain your translation strings, the path where your methods should be discovered in, and which languages you want to translate into.

The package currently only supports the Google Translate API.

To use the Google Translate API you need to set your API key. You can obtain an API key from your Google Cloud Console. Once generated, add your key to your .env file.

GOOGLE_TRANSLATE_API_KEY=XXXXXX

Usage

Once you have set your API key and set the languages you want to translate into, you're ready start processing. Run the following command to start processing. It will detect your translation methods and create the language files in resources/lang/. If you already have these files defined, it will override any matching keys with an updated translation.

php artisan translate

Pricing warning

Online translation providers, such as Google, charge for usage of their APIs. Check their pricing carefully, you are responsible for any charges incurred.

Contributing

Contributions are welcome. If you've spotted a bug, would like to add a new feature or implement a new service, please submit a pull request with associated test coverage. I'll review any pull requests as quickly as I can.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].