You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+34Lines changed: 34 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,6 +43,40 @@ To learn more about using Transifex Python toolkit check:
43
43
* For a general overview visit [Transifex Native overview](https://developers.transifex.com/docs/native?utm_campaign=tx-native&utm_source=github&utm_medium=link)
44
44
* For some common questions & answers check our [Transifex Native community](https://community.transifex.com/c/transifex-native/17)
45
45
46
+
# Django settings reference
47
+
48
+
The Transifex Native Django sdk is controlled via a set of configuration options defined in Django settings:
49
+
50
+
- TRANSIFEX_TOKEN: API token that connects your application to a Transifex project.
51
+
Must be set for both pushing source strings and fetching translations.
52
+
53
+
- TRANSIFEX_SECRET: Secret used together with the token for authenticated operations against CDS (e.g. pushing source content, invalidating cache).
54
+
55
+
- TRANSIFEX_CDS_HOST: Override the default CDS host (https://cds.svc.transifex.net).
56
+
57
+
- TRANSIFEX_FILTER_STATUS: Optional CDS filter[status] parameter used when fetching translations (e.g. "reviewed", "proofread"). If not set, CDS returns all available statuses.
58
+
59
+
- TRANSIFEX_FILTER_TAGS: Optional CDS filter[tags] parameter used when fetching translations. Use this to limit fetched content to specific tags.
Custom cache implementation. Defaults to an in-memory cache (MemoryCache) if not provided. Can be used to integrate with a shared cache (e.g. Redis, memcached).
69
+
70
+
- SKIP_TRANSLATIONS_SYNC: If True, disables automatic translation sync (OTA) for this environment.
71
+
72
+
- TRANSIFEX_SYNC_INTERVAL: Interval in seconds for the background sync daemon that fetches translations. Default: 30 * 60 (30 minutes). Set to 0 to disable periodic sync and only fetch on startup.
73
+
74
+
- TRANSIFEX_FETCH_ALL_LANGUAGES: When True, fetch translations for all languages configured in CDS. When False (default), only fetch translations for languages listed in Django’s LANGUAGES setting.
75
+
76
+
- TRANSIFEX_FETCH_TEMEOUT:
77
+
Maximum time in seconds to wait when fetching translations or locales from CDS.
78
+
0 (default) = no global timeout.
79
+
46
80
# License
47
81
48
82
Licensed under Apache License 2.0, see `LICENSE` file.
0 commit comments