id
stringlengths
16
145
text
stringlengths
1
179k
title
stringclasses
1 value
django_modeltranslation/django-parler-rest4_34_0.txt
* Code * Issues * Pull requests * Actions * Projects * Wiki * Security * Insights # django-parler/django-parler-rest
django_modeltranslation/django-rest-framework-translation5_14_0.txt
In your Django REST framework views, use the translation function to translate data before sending it as a response. For example: # views.py from rest_framework import generics from rest_framework.response import Response from .models import Translation from .serializers import Translatio...
django_modeltranslation/django-restful-translator8_99_0.txt
Supported by AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Microsoft PSF Sponsor Pingdom Monitoring Sentry Error logging StatusPage Status page
django_modeltranslation/django-restful-translator8_85_0.txt
Download the file for your platform. If you're not sure which to choose, learn more about installing packages . ### Source Distribution
django_modeltranslation/django-restful-translator8_50_0.txt
Run the admin command as follows: python manage.py drt_translate_models --language=es --provider=google_v3
django_modeltranslation/django-restful-translator8_84_0.txt
Jun 23, 2023 ## Download files
django_modeltranslation/caveats.html6_10_0.txt
#### Previous topic Management Commands
django_modeltranslation/django-restful-translator8_74_0.txt
Feb 16, 2024 0.7.0
django_modeltranslation/django-restful-translator8_49_0.txt
You can use the provided admin command to translate your model fields. The command accepts the following arguments: * ` --language ` : The language code to which you want to translate. * ` --target_language ` : The provider target language if it differs from the setting language * ` --provider ` : The translat...
django_modeltranslation/django-rest-framework-translation5_51_0.txt
The flexibility and capacity of the Mindbower staff has been impressive. #### Matthew Amsden
django_modeltranslation/django-rest-framework-translation5_26_0.txt
##### Test Driven Development approach using Django Rest Framework Read More
django_modeltranslation/django-parler-rest4_14_0.txt
Resources * Learning Pathways * White papers, Ebooks, Webinars * Customer Stories * Partners
django_modeltranslation/django-parler-rest4_63_0.txt
First configure a model, following the django-parler documentation : from django.db import models from django.utils.translation import gettext_lazy as _ from parler.models import TranslatableModel, TranslatedFields class Country(TranslatableModel): """ Country...
django_modeltranslation/django-rest-framework-translation5_17_0.txt
## Conclusion By incorporating the gtranslate library into your Django REST framework project, you can seamlessly translate data in your API responses. This approach can be particularly useful for multilingual applications that need to cater to users with different language preferences.
django_modeltranslation/caveats.html6_6_0.txt
If you forget to register the shadow models, you will get an error like: TypeError: 'text_es' is an invalid keyword argument for this function
django_modeltranslation/django-parler-rest4_22_0.txt
We read every piece of feedback, and take your input very seriously. Include my email address so I can be contacted
django_modeltranslation/django-rest-framework-translation5_11_0.txt
Get in Touch ## Overriding Model Save Method
django_modeltranslation/django-restful-translator8_44_0.txt
### For Google Translate v3: You can use the ` GOOGLE_APPLICATION_CREDENTIALS ` environment variable to provide the location of a credential JSON file. https://cloud.google.com/docs/authentication/application-default- credentials#GAC
django_modeltranslation/django-parler-rest4_55_0.txt
### runtests.py | | ### setup.cfg
django_modeltranslation/django-parler-rest4_18_0.txt
* Topics * Trending * Collections * Pricing
django_modeltranslation/django-restful-translator8_78_0.txt
Oct 27, 2023 0.4.0
django_modeltranslation/django-restful-translator8_96_0.txt
Status: all systems operational Developed and maintained by the Python community, for the Python community. Donate today!
django_modeltranslation/django-restful-translator8_43_0.txt
### For Google Translate v2: You can use the ` GOOGLE_APPLICATION_CREDENTIALS ` environment variable to provide the location of a credential JSON file. https://cloud.google.com/docs/authentication/application-default- credentials#GAC
django_modeltranslation/django-parler-rest4_57_0.txt
| | ### setup.py |
django_modeltranslation/django-parler-rest4_73_0.txt
Apache-2.0 license Activity
django_modeltranslation/django-parler-rest4_69_0.txt
python setup.py test # install dependencies and run tests with coverage ## About
django_modeltranslation/django-parler-rest4_11_0.txt
* All features * Documentation * GitHub Skills * Blog * Solutions
django_modeltranslation/django-rest-framework-translation5_16_0.txt
Don’t forget to update your serializers to include the new translated_field: # serializers.py from rest_framework import serializers from .models import Translation class TranslationModelSerializer(serializers.ModelSerializer): class Meta: model = Translation fields = ['id', ...
django_modeltranslation/django-parler-rest4_81_0.txt
## Contributors 8 * * * * * * * *
django_modeltranslation/django-restful-translator8_36_0.txt
YourModel.objects.all().prefetch_related('translations') 6. Run the provided management commands to generate ` .po ` files and update the database with translations.
django_modeltranslation/django-restful-translator8_57_0.txt
###### Maintainers alexivanchyk
django_modeltranslation/django-parler-rest4_79_0.txt
## Packages 0 No packages published
django_modeltranslation/django-parler-rest4_38_0.txt
Name | Name | Last commit message | Last commit date ---|---|---|--- ## Latest commit ## History
django_modeltranslation/django-restful-translator8_21_0.txt
* Automatic Translation : The library supports automatic translation of model fields through popular translation providers like Google Translate v2, v3, AWS Translate and Deepl. The feature is configurable and can be run via an admin command. ## Advantages
django_modeltranslation/django-rest-framework-translation5_3_0.txt
## Prerequisites Before we begin, just make sure you have these things ready:
django_modeltranslation/django-rest-framework-translation5_46_0.txt
Founder, Teach Reach Mindbowser built both iOS and Android apps for Mindworks, that have stood the test of time. 5 years later they still function quite beautifully. Their team always met their objectives and I'm very happy with the end result. Thank you!
django_modeltranslation/django-parler-rest4_1_0.txt
Toggle navigation Sign in
django_modeltranslation/django-parler-rest4_15_0.txt
* Open Source * GitHub Sponsors
django_modeltranslation/django_modeltranslation_0_2.txt
gh the inner ` Media ` class of a ` TranslationAdmin ` class like this: class NewsAdmin(TranslationAdmin): class Media: js = ( 'modeltranslation/js/force_jquery.js', 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.24/jquery-ui.min.js', ...
django_modeltranslation/django-parler-rest4_43_0.txt
### testproj | | ### .gitignore
django_modeltranslation/django-parler-rest4_62_0.txt
## Usage * First make sure you have django-parler_ installed and configured. * Use the serializers as demonstrated below to expose the translations.
django_modeltranslation/django-parler-rest4_51_0.txt
| | ### README.md |
django_modeltranslation/django-rest-framework-translation5_40_0.txt
Founder, PeriopMD I can not express enough how pleased we are with the whole team. From the first call and meeting, they took our vision and ran with it. Communication was easy and everyone was flexible to our schedule. I’m excited to...
django_modeltranslation/django-restful-translator8_54_0.txt
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. ## License
django_modeltranslation/django-rest-framework-translation5_75_0.txt
Mindbowser was an excellent partner in developing my fitness app. They were patient, attentive, & understood my business needs. The end product exceeded my expectations. Thrilled to share it globally. #### Jirina Harastova
django_modeltranslation/django-parler-rest4_42_0.txt
| | ### testproj |
django_modeltranslation/django-rest-framework-translation5_13_0.txt
This ensures that the translation occurs automatically when you save an instance of the model. ## Using Translated Data in API Views
django_modeltranslation/django-rest-framework-translation5_81_0.txt
* What We Do * Product * DevSecOps * Architecture & Design * Re-engineering * Analysis & Testing * Migration & Integration * Maintenance & Support * Digital * Design Thinking * Customer Experiences * Digital Solutions * IT Modernization ...
django_modeltranslation/django-parler-rest4_50_0.txt
| ### MANIFEST.in
django_modeltranslation/django-parler-rest4_36_0.txt
Branches Tags Go to file
django_modeltranslation/django-restful-translator8_67_0.txt
Mar 28, 2024 0.9.3
django_modeltranslation/django-parler-rest4_64_0.txt
The model translations can be exposed as a separate serializer: from rest_framework import serializers from parler_rest.serializers import TranslatableModelSerializer, TranslatedFieldsField from .models import Country # Example model class CountrySerializer(TranslatableModelSeriali...
django_modeltranslation/django-restful-translator8_34_0.txt
from django_restful_translator.drf.serializers import TranslatableDBSerializer class YourModelSerializer(TranslatableDBSerializer): ... 4. To enable managing translations in the Django admin, add ` TranslationInline ` to your model admin.
django_modeltranslation/django-rest-framework-translation5_30_0.txt
Read More Technology Blogs
django_modeltranslation/django-parler-rest4_44_0.txt
| ### .gitignore
django_modeltranslation/django-parler-rest4_24_0.txt
## Use saved searches to filter your results more quickly Name
django_modeltranslation/django-restful-translator8_28_0.txt
INSTALLED_APPS = [ ... 'django_restful_translator', ... ] Set up your languages and locale paths. Make sure to include both the standard locale directory and the one for django_restful_translator:
django_modeltranslation/django-restful-translator8_92_0.txt
* Installing packages * Uploading packages * User guide * Project name retention * FAQs ## About PyPI
django_modeltranslation/django-rest-framework-translation5_52_0.txt
CEO, ProofPilot I am happy to share that we got USD 10k in cloud credits courtesy of our friends at Mindbowser. Thank you Pravin and Ayush, this means a lot to us.
django_modeltranslation/django-rest-framework-translation5_71_0.txt
#### Radhika Kotwal Founder, Courtyardly
django_modeltranslation/django-rest-framework-translation5_42_0.txt
Mindbowser has truly been foundational in my journey from concept to design and onto that final launch phase. #### Jovan Pizarro
django_modeltranslation/django-parler-rest4_32_0.txt
Star Notifications
django_modeltranslation/django-rest-framework-translation5_79_0.txt
* * * * * * * * * Who We Are * About Us * Core Values * Leadership Team * Our Approach * Our Work * Careers * Privacy Policy
django_modeltranslation/django-rest-framework-translation5_37_0.txt
Founder, Cascada Amazing team to work with. Very responsive and very skilled in both front and backend engineering. Looking forward to our next project together.
django_modeltranslation/django-rest-framework-translation5_76_0.txt
Owner, Phalanx Mindbowser's expertise in tech, process & mobile development made them our choice for our app. The team was dedicated to the process & delivered high- quality features on time. They also gave valuable industry advice. Highly recommend them for app development...
django_modeltranslation/django-parler-rest4_6_0.txt
Instant dev environments * Copilot
django_modeltranslation/django-restful-translator8_48_0.txt
# settings.py DEEPL_AUTH_KEY = 'your DeepL auth key here' ### Running the Admin Command
django_modeltranslation/django-parler-rest4_71_0.txt
python translations django internationalization django-rest-framework ### Resources
django_modeltranslation/django-parler-rest4_48_0.txt
| | ### LICENSE |
django_modeltranslation/django-rest-framework-translation5_50_0.txt
#### Pankaj Parashar CEO, PurpleAnt
django_modeltranslation/django-rest-framework-translation5_49_0.txt
Founder, TrestleIQ Mindbowser has delivered a much better quality product than our previous tech vendors. Our product is stable and passed Well Architected Framework Review from AWS.
django_modeltranslation/django-restful-translator8_30_0.txt
After setting up, you need to create the necessary database tables. You can do this by running migrations: python manage.py migrate
django_modeltranslation/django-parler-rest4_76_0.txt
3 watching ### Forks
django_modeltranslation/django-restful-translator8_75_0.txt
Feb 15, 2024 0.6.1
django_modeltranslation/django-rest-framework-translation5_4_0.txt
* A Django project set up. * Basic knowledge of Django models. * A Google Cloud account and API key for the Google Translate API. ## Installing gTranslate
django_modeltranslation/django-rest-framework-translation5_28_0.txt
##### Django Models and Database Integration: A Comprehensive Tutorial Read More
django_modeltranslation/django_modeltranslation_1_3.txt
ues can be also customized per model field: class NewsTranslationOptions(TranslationOptions): fields = ('title', 'text',) fallback_values = { 'title': _('-- sorry, this news was not translated --'), 'text': _('-- please contact our translator (translator@example.co...
django_modeltranslation/django-parler-rest4_23_0.txt
Cancel Submit feedback # Saved searches
django_modeltranslation/django-restful-translator8_19_0.txt
* Model translations : The ` TranslatableModel ` mixin adds translation capabilities to your models, allowing you to specify which fields should be translatable, while leaving the original field values intact. * Translation management : Admin inlines for managing translations from the Django Admin site.
django_modeltranslation/django-restful-translator8_25_0.txt
Use the package manager pip to install django_restful_translator. pip install django-restful-translator
django_modeltranslation/django-restful-translator8_9_0.txt
### Unverified details These details have not been verified by PyPI
django_modeltranslation/django-rest-framework-translation5_18_0.txt
Remember to handle errors gracefully and be aware of the Google Translate API usage limits and pricing. Feel free to adapt the code snippets to fit the structure and requirements of your specific Django REST framework project. #### Affan Shaikh
django_modeltranslation/django-rest-framework-translation5_62_0.txt
#### Hieu Le Executive Director of Product Development, Innovation Lab
django_modeltranslation/django-restful-translator8_13_0.txt
License: MIT License (MIT) Author: Alex Ivanchyk
django_modeltranslation/django-restful-translator8_76_0.txt
Jan 30, 2024 0.6.0
django_modeltranslation/django-parler-rest4_3_0.txt
Automate any workflow * Packages
django_modeltranslation/django-restful-translator8_10_0.txt
###### Project links * Homepage
django_modeltranslation/django-parler-rest4_30_0.txt
Translatable model support for django-rest-framework ### License
django_modeltranslation/django-restful-translator8_83_0.txt
Jun 27, 2023 0.1.3
django_modeltranslation/django-parler-rest4_33_0.txt
* Code * Issues 13 * Pull requests 3 * Actions * Projects 0 * Wiki * Security * Insights Additional navigation options
django_modeltranslation/django-rest-framework-translation5_69_0.txt
Ayush was responsive and paired me with the best team member possible, to complete my complex vision and project. Could not be happier. #### Katie Taylor
django_modeltranslation/django-restful-translator8_63_0.txt
Tags django, rest-framework, translation, i18n Requires: Python >=3.7
django_modeltranslation/django-rest-framework-translation5_15_0.txt
Here, we override the list method to translate the data before sending the response. Ensure that your serializer includes both field_to_translate and translated_field. ## Serializers
django_modeltranslation/django-parler-rest4_7_0.txt
Write better code with AI * Code review
django_modeltranslation/django-rest-framework-translation5_73_0.txt
CEO, SDOH2Health LLC Mindbowser was easy to work with and hit the ground running, immediately feeling like part of our team.
django_modeltranslation/django-restful-translator8_39_0.txt
python manage.py drt_convert_locales --locale locale To remove entries in the original ` .po ` file that are used/converted in the new DRT format:
django_modeltranslation/django-rest-framework-translation5_72_0.txt
The team from Mindbowser stayed on task, asked the right questions, and completed the required tasks in a timely fashion! Strong work team! #### Michael Wright
django_modeltranslation/django-rest-framework-translation5_27_0.txt
## Keep Reading Technology Blogs
django_modeltranslation/caveats.html6_2_0.txt
Since the modeltranslation mechanism relies on the current language as it is returned by the ` get_language ` function care must be taken when accessing translated fields outside a view function. Within a view function the language is set by Django based on a flexible model described at How Django discovers language...
django_modeltranslation/django-restful-translator8_45_0.txt
#### Configuring Django Settings To integrate Google Translate API v3 with your Django application, you need to add the following configuration settings in your settings.py file. These settings will specify your Google Cloud project name and the location for the Translate API: