Download the PHP package conquer/i18n without Composer
On this page you can find all versions of the php package conquer/i18n. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Package i18n
Short Description The I18n automatic translation extension for the Yii2 framework
License MIT
Homepage https://github.com/borodulin/yii2-i18n-google
Informations about the package i18n
Yii2 I18N Google & Yandex translation services integration
Description
This extension makes it possible to automatically translate messages using external services.
With Google Translate, you can dynamically translate text between thousands of language pairs. The Google Translate API lets websites and programs integrate with Google Translate programmatically. Google Translate API is available as a paid service. See the Pricing and FAQ pages for details.
Yandex
The API provides access to the Yandex online machine translation service. It supports more than 40 languages and can translate separate words or complete texts. The API makes it possible to embed Yandex.Translate in a mobile app or web service for end users. Or translate large quantities of text, such as technical documentation.
Installation
The preferred way to install this extension is through composer.
To install, either run
or add
to the section of your composer.json
file.
To create database tables run migration command
Usage
You need to configure Module and i18n component
Use \Yii::t function to translate messages
*""** Translation category is used by default for all non-translated messages.
You can configure a separate category for the translation of messages by external translator.
Use \Yii::t function to translate messages in "yandex" category
License
conquer/i18n is released under the MIT License. See the bundled LICENSE.md
for details.