I am using Django Rest Framework and its Internationalization function. I can now get a auto translated response on default errors response by adding "Accept-Language" on header. I tried "zh-hans" is working but "zh-hant" not working. I also tried "ja-JP" , "de" its working. Is there a list for me to check the language code? I found a name list from here https://explore.transifex.com/django-rest-framework-1/django-rest-framework/ it said its support Chinese Traditional and Chinese (Taiwan). I tried zh-tw not working too.
Django Rest Internationalization not working on some language
178 Views Asked by Wong Yat Cheong Jacky At
1
There are 1 best solutions below
Related Questions in DJANGO
- Django Admin Panel and Sub URLs Returning 404 Error on Deployment
- How to return HTTP Get request response from models class in Django project
- Issue with Quantity Increment in Django E-commerce Cart
- Can't install Pipenv on Windows
- use dict from python in django html template and also in js
- 'pyodbc.Cursor' object has no attribute 'callproc', mssql with django
- Django socketio process
- Root path analogue in uWSGI as in Uvicorn
- Django - ModuleNotFoundError: No module named 'backend'
- Does Python being a loosely typed programming language make it less secure?
- sorl-thumbnail adds a background color when padding is used
- Can't connect to local postgresql server from my docker container
- Why ProductHunt api dont work with Python?
- why i have to put extra space in before write option selected because it show error if i don't ' option:selected'
- Django Arrayfield migration to cloud sql (Postgresql) not creating the column
Related Questions in DJANGO-REST-FRAMEWORK
- Django - ModuleNotFoundError: No module named 'backend'
- Cookie doesn't send different domain django and react
- "Troubleshooting Image Upload Failure: React-admin to Django REST Framework Backend"
- How to send Stripe session checkout parameters in subscription mode
- Deploy my Django rest framework app to Vercel
- Should i use GET or POST for request with body in DRF?
- KeyFeatures for Product implementation
- How to change status field automatically from 1 to 0 when end_time is reached
- DRF, corsheaders and SSL certificate error on deploy on VPS
- Taking field from another model in serializers
- Want to retrieve a Foreign Key value instead of the whole object with django-rest-framework serializers
- How to get Notification to admin Using Rest Api
- Request header field access-control-allow-origin is not allowed by Access-Control-Allow-Headers in preflight response, nginx, django, waitress
- Error creating auth token for newly registered user in Django Rest Framework
- fix django login bug
Related Questions in TRANSLATION
- DirectX 9 With No SDK Installed - How To Translate a D3DMATRIX?
- How to modify features of tfidfvectorizer from English to Spanish
- integrate huggingface inference endpoint with flowise
- System.Recources.Resourcemanager only finds the 'default' .resx file (translation file) based on the CultureInfo object
- How do I implement bilingual sentence alignment for English and Japanese texts in Python and export them to XLSX?
- TypeError: Translator.translate() missing 1 required positional argument: 'text'
- Parameterisation of yup translation - next.js
- Displaying Marathi(Non English Characters) using PIL library onto the OpenCV Interface not working as needed
- Updating comments with references in .po translation
- Langchain/Huggingface Pipeline Error about model_kwargs which I did not include
- Getting error when upload training data for Azure Custom Translator using API with C#
- How do I display a language like Hindi, Marathi that don't have English characters in an open cv feed?
- Use a default/fallback value if the translation is not available in Lingui, React
- Why doesn't video-conferencing with subtitles exist?
- Error configuring flask-babel method jinja2 not found
Related Questions in TRANSIFEX
- How to setup Fastlane (or Transifex) to deal with languages in Android application?
- Generate Resx file dynamically at application startup
- Django Rest Internationalization not working on some language
- Transifex push failing all of a sudden?
- Single YAML file VS multiple YAML files in different folders and subfolders
- Gatsby translation with transifex
- How to translate descriptions in datasets in CKAN??
- Generate/edit source file for transifex
- python - cx_freeze - Error about external module transifex.api
- How to handle Django templates in Transifex?
- Bypass parsley.js localization catalog and use gettext() in js
- Use PUT to upload file with TIdHTTP
- Convert non-standard yml localization files to php array or other format usable for web translation
- How to "stack" languages in gettext
- Download files from multiple Transifex projects
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I have the same issue. I found simple-jwt don't have zh_hant within his ...\Lib\site-packages\rest_framework_simplejwt\locale directory. (the zh_hans is existed here)
Create a zh_Hant directory within ...\locale diretory, copy files with subdirectory of zh_Hans into zh_Hant, convert ...\zh_Hant\LC_MESSAGES\django.po content to be Chinese Traditional, and then compile it to be django.mo file, it is workable for me.