divante-ltd / pimcore-translation-bundle
Pimcore Translation Bundle
Installs: 3 283
Dependents: 0
Suggesters: 0
Security: 0
Stars: 10
Watchers: 18
Forks: 8
Open Issues: 4
Type:pimcore-bundle
Requires
- php: >=7.4
- ext-intl: *
- ext-json: *
- guzzlehttp/guzzle: ^6.3 || ^7.0
- pimcore/pimcore: >=5.5.0
Requires (Dev)
- phpunit/phpunit: ^9.5
README
Copy data from the source language and translate it by using:
- Google Translate (https://cloud.google.com/translate)
- Deepl (https://www.deepl.com/en/docs-api/)
- Microsoft Translator (global region) (https://azure.microsoft.com/en-en/services/cognitive-services/translator/)
Supports input, textarea and wysiwyg fields.
Table of Contents
Compatibility
This module is compatible with Pimcore 5.5.0 and higher. Including Pimcore 10.
Installing/Getting started
composer require divante-ltd/pimcore-translation-bundle
Configuration
Available providers:
google_translate
deepl
deepl_free
- free version of DeepL APImicrosoft_translate
divante_translation:
api_key:
source_lang:
provider: # default provider: google_translate
formality: # working for providers deepl and deepl_free only.
DeepL Formality:
Sets whether the translated text should lean towards formal or informal language.
This feature currently only works for target languages "DE" (German), "FR" (French), "IT" (Italian), "ES" (Spanish), "NL" (Dutch), "PL" (Polish), "PT-PT", "PT-BR" (Portuguese) and "RU" (Russian).
Possible options are:
"default" (default)
"more" - for a more formal language
"less" - for a more informal language\
Enable the Bundle:
bin/console pimcore:bundle:enable DivanteTranslationBundle
How to add new provider
Create Provider and implement interface
DivanteTranslationBundle\Provider\ProviderInterface
If your provider has a option to set formality
option implement interface:
DivanteTranslationBundle\Provider\FormalityProviderInterface
How it works?
Testing
Unit Tests:
vendor/bin/phpunit
Contributing
If you'd like to contribute, please fork the repository and use a feature branch. Pull requests are warmly welcome.
Licence
Pimcore Translation Bundle source code is completely free and released under the MIT.
Standards & Code Quality
This module respects all Pimcore 5 code quality rules and our own PHPCS and PHPMD rulesets.
About Authors
We are a Software House from Europe, existing from 2008 and employing about 150 people. Our core competencies are built around Magento, Pimcore and bespoke software projects (we love Symfony3, Node.js, Angular, React, Vue.js). We specialize in sophisticated integration projects trying to connect hardcore IT with good product design and UX.
We work for Clients like INTERSPORT, ING, Odlo, Onderdelenwinkel and CDP, the company that produced The Witcher game. We develop two projects: Open Loyalty - an open source loyalty program and Vue.js Storefront.
We are part of the OEX Group which is listed on the Warsaw Stock Exchange. Our annual revenue has been growing at a minimum of about 30% year on year.
Visit our website Divante.co for more information.