Title: django's gettext problem · Issue #69 · markfinger/python-react · GitHub
Open Graph Title: django's gettext problem · Issue #69 · markfinger/python-react
X Title: django's gettext problem · Issue #69 · markfinger/python-react
Description: how to resolve the problem gettext is not defined. an example base template file ...
X Description: how to resolve the problem gettext is not defined. an example base template file <html lang='zh-TW'> <head> <meta charset="UTF-8"> <meta http-equiv="cont...
Opengraph URL: https://github.com/markfinger/python-react/issues/69
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"django's gettext problem","articleBody":"how to resolve the problem gettext is not defined. \n\nan example base template file\n\n``` html\n\u003chtml lang='zh-TW'\u003e\n\u003chead\u003e\n \u003cmeta charset=\"UTF-8\"\u003e\n \u003cmeta http-equiv=\"content-type\" content=\"text/html;charset=UTF-8\"\u003e\n \u003cmeta name=\"viewport\" content=\"user-scalable=no, initial-scale=1, maximum-scale=1.0, width=device-width, height=device-height \" /\u003e\n \u003cmeta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\"\u003e\n \u003cscript type=\"text/javascript\" src=\"{% url 'django.views.i18n.javascript_catalog' %}\"\u003e\u003c/script\u003e\n {% block extra_content %} {% endblock %} {% block js %} {% endblock %}\n\u003c/head\u003e\n\u003cbody\u003e\n \u003cdiv id=\"now_lang\" style=\"display: none\"\u003e{{ LANG }}\u003c/div\u003e\n {% csrf_token %}\n {% block content %}{% endblock %}\n\u003c/body\u003e\n\u003c/html\u003e\n```\n\nby add this `\u003cscript type=\"text/javascript\" src=\"{% url 'django.views.i18n.javascript_catalog' %}\"\u003e\u003c/script\u003e`, I can call `gettext` in my jsx file. However, the render server will not know what `gettext` is.\n\nIs there any solution for this situation ?\n","author":{"url":"https://github.com/sillygod","@type":"Person","name":"sillygod"},"datePublished":"2016-08-12T08:09:38.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/69/python-react/issues/69"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:a458c01c-c91e-2746-4dc2-1cee2741d4f0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B1A8:9445B:93AC0F:CD6A72:696A82DD |
| html-safe-nonce | e5191f65b0ace1e6c6cfed31cfe649cdf3d87ea7da7ade57e812cdf9cf54a576 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMUE4Ojk0NDVCOjkzQUMwRjpDRDZBNzI6Njk2QTgyREQiLCJ2aXNpdG9yX2lkIjoiNTQ4MDQ1ODM5NDA3OTQ5NDg3NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 850826130dcc6c72dc288550f348aebed33b5e15bb19c8421579c6be98daadb6 |
| hovercard-subject-tag | issue:170819768 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/markfinger/python-react/69/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d0b90fe39c88f78d13596b6ecfdfb6ecd06eb4bea3d478c211da921691a6c23b/markfinger/python-react/issues/69 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d0b90fe39c88f78d13596b6ecfdfb6ecd06eb4bea3d478c211da921691a6c23b/markfinger/python-react/issues/69 |
| og:image:alt | how to resolve the problem gettext is not defined. an example base template file ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sillygod |
| hostname | github.com |
| expected-hostname | github.com |
| None | 913560fa317c3c5a71e34f9b19253c9f09d02b4b958a86c2a56f4c8541116377 |
| turbo-cache-control | no-preview |
| go-import | github.com/markfinger/python-react git https://github.com/markfinger/python-react.git |
| octolytics-dimension-user_id | 175974 |
| octolytics-dimension-user_login | markfinger |
| octolytics-dimension-repository_id | 27406686 |
| octolytics-dimension-repository_nwo | markfinger/python-react |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27406686 |
| octolytics-dimension-repository_network_root_nwo | markfinger/python-react |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 5998c30593994bf2589055aef7b22d368a499367 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width