![]() ![]() So, after you’ve registered, proceed to your personal profile, and copy the API key. ![]() The good news is that registration takes less than a minute and you won’t have to pay anything: there’s a free plan that allows you to send up to 1000 requests per day. To start using this feature, you have to register on the website and generate an API key. Here are some sample contents for this JSON file: !', 'Ce tutoriel explique comment traduire des textes avec Python.']ĭeep-translator allows you to perform language detection, but unfortunately this does not work out of the box. The full path to this file is YOUR_PROJECT/src/i18n/en.json. Inside the src directory, let’s add an i18n folder with an en.json file. We will use these packages throughout the tutorial, therefore install it by running: pipenv installĪlso, create an empty. Next, create a new folder for your project and add a Pipenv file in it: ] Let’s install Pipenv: pip install -user pipenv I’ll be using Pipenv to manage dependencies and create a virtual environment, but of course you can take advantage of another solution. Now I would like to see these Python translation libraries in action, but first things first: we need to prepare a sample project.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |