Skip to content

benildo/translate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PostYan - Translate Language JSON (Node)

🇪🇸 🇩🇪 🇮🇹 🇷🇺 🇺🇸 🇬🇧 🇰🇷 🇨🇳 🇫🇷 🇬🇧 🇯🇵

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).

Getting Start 🏁

To use this system, you must install this project.

Prerequisites ⚠️

  • 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.

Installation 🔨

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' };

Running the tests 🚴

To access the use the command:

$ npm start

How to use the system 🏆

  1. Open the postman and select "POST"
  2. In place type the local url with the name of the application and the desired language (en = English) Ex .: localhost:3003/translate/en
  3. Select "Body"
  4. Check "raw"
  5. Select JSON
  6. Paste the JSON object between {}
  7. Click "Send"
  8. 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"
        }
}

Contribution 💰

To contribute to the project deposit any account into my account.

Authors ✏️

  • Benildo Junior - Initial work - Dev 🐶
  • Anderson Ribeiro - Initial work - Dev 🐰

License 🍀

This project is licensed under the MIT License - see the LICENSE.md file for details

Supported languages ​​and their respective codes 👀

https://tech.yandex.com/translate/doc/dg/concepts/api-overview-docpage/

YanDex Key Limit

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

About

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.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors