🇪🇸 🇩🇪 🇮🇹 🇷🇺 🇺🇸 🇬🇧 🇰🇷 🇨🇳 🇫🇷 🇬🇧 🇯🇵
This software can be used to translate files in JSON format in several languages using the Yandex website. This system is widely used for the internationalization of Angular systems.
Restrictions:
For POST requests, the maximum size of the text being passed is 10,000 characters. In GET requests, the restriction applies not to the text itself, but to the size of the entire request string, which can contain other parameters besides the text. The maximum size of the string is from 2 to 10 KB (depending on the browser version).
To use this system, you must install this project.
- Node v6.10.2
- Visual Studio Code
- Postman
- Yandex Key
There is no set of settings for programs, only one Yandex Key you need to do some work as it is necessary to create an account on the site and create a key. follow the link to facilitate the purchase of this key.
After you install the prerequisites, clone the project into a folder of your choice. Then install the project using the command:
$ npm install
Do not forget to add the Yandex key to /config/env/development.js
Exemple:
module.exports = { yandexApiKey: 'Your-Yandex-Key' };
To access the use the command:
$ npm start
- Open the postman and select "POST"
- In place type the local url with the name of the application and the desired language (en = English) Ex .: localhost:3003/translate/en
- Select "Body"
- Check "raw"
- Select JSON
- Paste the JSON object between {}
- Click "Send"
- The translated result appears below
Example for test:
{
"notificacao":{
"envioNotif":"Envio de Notificação",
"erroNotif":"Erro ao enviar a notificação",
"notifSucessoErroAuditoria":"Notificação enviada com sucesso.\n(*) Erro ao cadastrar auditoria.",
"notifSucesso":"Notificação enviada com sucesso'",
"max140c":"Máximo 140 caracteres.",
"mensagem":"Mensagem",
"notificar":"Notificar",
"titulo":"Título"
}
}
To contribute to the project deposit any account into my account.
This project is licensed under the MIT License - see the LICENSE.md file for details
https://tech.yandex.com/translate/doc/dg/concepts/api-overview-docpage/
https://tech.yandex.com/translate/doc/dg/reference/translate-docpage/ https://tech.yandex.com/translate/doc/dg/concepts/faq-api-translate-docpage/ https://translate.yandex.com/developers/prices