Shrihari Mahabal
aee33c5bbe
fix: add build version to translation version
2026-03-27 12:47:35 +05:30
Shrihari Mahabal
0b3e0f5c51
refactor: use random string hash for translation version
2026-03-26 15:41:43 +05:30
Shrihari Mahabal
81eb7d6892
fix: increment translation version normally instead of incrby
2026-03-26 13:35:53 +05:30
Shrihari Mahabal
1a03e5af8d
fix: make translation version update for system and user translations both
2026-03-26 12:53:10 +05:30
Shrihari Mahabal
a574651acc
refactor: add type hints to get_boot_translations
2026-03-26 12:53:09 +05:30
Shrihari Mahabal
9ef5aa256b
perf: remove translations from boot
2026-03-26 12:53:09 +05:30
Suraj Shetty
d428845db3
Merge pull request #37301 from prathameshkurunkar7/28969-exclude-css-class-names-from-translatable-strings
2026-02-23 12:25:36 +05:30
prathameshkurunkar7
a879b8dd65
fix: prevent translation of icon class names for workflow states in select options
2026-02-20 12:54:03 +05:30
Aarol D'Souza
c55ff193a6
fix: add type hints to whitelisted methods 3 ( #37149 )
...
* fix(apps): add type hints to whitelisted methods
* fix(recorder): add type hints to whitelisted methods
* fix(comments): add type hints to whitelisted methods
* fix(oauth2): add type hints to whitelisted methods
* fix(google_calendar): add type hints to whitelisted methods
* fix(print): add type hints to whitelisted methods
* fix(print_format_builder): add type hints to whitelisted methods
* refactor(network_printer_settings): remove unused args
* fix(document): add type hints to whitelisted methods
* fix(user_settings): add type hints to whitelisted methods
* fix(mapper): add type hints to whitelisted methods
* fix(connected_app): add type hints to whitelisted methods
* fix(google_contacts): add type hints to whitelisted methods
* fix(frappecloud_billing): add type hints to whitelisted methods
* test: rewrite test to fit the strict type check
* fix(social_login_key): add type hints to whitelisted methods
* fix(share): add type hints to whitelisted methods
* fix(webhook): add type hints to whitelisted methods
* fix(workflow): add type hints to whitelisted methods
* fix(workflow main): add type hints to whitelisted methods
* fix(workflow_action): add type hints to whitelisted methods
* fix: flexible type hint
* fix(client): add type hints to whitelisted methods
* fix: fix some of the tighter types
* fix(frappecloud_billing): add str typehint to whitelisted endpoint
* fix: target_doc can be dict/json string
---------
Co-authored-by: Ankush Menat <ankush@frappe.io>
2026-02-20 06:50:19 +00:00
El-Shafei H.
b5785972d1
fix: check len(item) before replace "\\n" with "\n" ( #35571 )
2026-01-05 18:31:09 +05:30
Akhil Narang
09bbb31556
Revert "fix: added api to get translation messages for portal apps"
2025-12-02 11:36:03 +05:30
El-Shafei H.
c8c07ea685
fix: translate CSV ( #33855 )
2025-11-05 17:26:56 +00:00
Akhil Narang
6ca4d4d167
refactor(treewide): ruff format
...
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2025-09-26 13:16:43 +05:30
sokumon
63cf3676a0
fix: remove utils file and typo
2025-06-17 18:39:21 +05:30
sokumon
422995cd45
fix: seperate backup options into app
2025-06-14 23:59:22 +05:30
Raffael Meyer
3b7df82a80
chore: remove unused method ( #29163 )
2025-01-14 21:39:09 +00:00
Ankush Menat
e37219ef39
perf: Store languages in client cache
2025-01-06 19:52:43 +05:30
Ankush Menat
41d4155bba
perf: Use system settings directly for fetching language
2024-12-26 11:52:44 +05:30
Akhil Narang
84ef6ec677
refactor: fixup with ruff 0.8.1
...
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-12-04 13:18:04 +05:30
Shariq Ansari
dfe427b8d0
fix: added api to get translation messages for portal apps
2024-12-02 17:47:43 +05:30
David (aider)
8e80ae7980
fix: Implement parent-child language precedence in get_all_translations
2024-09-21 01:56:07 +02:00
Lyes7
9b89eba337
fix: workflow typos
2024-09-12 10:18:49 +01:00
Corentin Forler
35fb0e2687
fix(translate): Fix extraction in JS files ( #27401 )
...
Co-authored-by: barredterra <14891507+barredterra@users.noreply.github.com>
2024-08-14 12:25:44 +00:00
Ankush Menat
c17eb87c70
perf: Reuse cached user for get_user_lang ( #26350 )
...
Saves ~1% of overhead.
User doc is almost always cached to create session so we can reuse it in
same request without additional redis call.
2024-05-07 12:50:22 +05:30
Ankush Menat
56233f3182
chore: dead hooks
2024-05-04 15:08:32 +05:30
Ankush Menat
b7bc5d3236
fix(round 3): switch to creation sorting ( #25669 )
2024-03-27 08:59:04 +00:00
Akhil Narang
3f1e19de85
refactor(treewide): enable RUF rules
...
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-02-21 16:20:28 +05:30
Ankush Menat
0a886b7ca8
perf: defer imports during CLI
2024-02-19 18:10:07 +05:30
lbrandh
4ceb5c32b7
fix: preferred_language cookie ( #24819 )
2024-02-09 13:59:44 +00:00
Akhil Narang
26ae0f3460
fix: ruff fixes
...
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-02-07 17:04:31 +05:30
Ankush Menat
de9ac89748
style: re-format with ruff
2024-02-05 18:53:33 +05:30
Akhil Narang
f19c25ec42
Merge pull request #24432 from blaggacao/chore/cleanup-frappe-connect-2
...
chore: cleanup frappe connect II/II
2024-02-02 16:53:19 +05:30
Ankush Menat
aad0c19f3a
fix: lazy translate circular imports ( #24672 )
...
* Revert "fix: remove _lt from frappe.model.std_fields (#24662 )"
This reverts commit 833d108614 .
* fix: circular import
2024-02-01 12:27:25 +00:00
David Arnold
c57bc94ead
chore: cleanup frappe.connect invocations
2024-01-24 11:56:24 +01:00
barredterra
368283769f
refactor: move extract_messages_from_code to a separate utils file
...
In order to avoid circular imports.
2024-01-19 16:16:38 +01:00
Ankush Menat
b3eaec4347
fix: misc ( #24303 )
...
* fix(DX): improve logging in various places
* fix(ux): misc RQ worker and job fixes
2024-01-13 10:54:38 +05:30
Ankush Menat
98b62e8220
fix: add _lt to extractors
2024-01-10 21:47:55 +05:30
Ankush Menat
1f6201b4af
feat: lazy global translated strings
2024-01-10 21:28:01 +05:30
Ankush Menat
f246f37762
fix: language variants support
2024-01-10 18:27:57 +05:30
barredterra
a53e819022
fix: move extract_javascript to extractors folder and use it
...
instead of babels js extractor
2023-12-28 17:00:46 +01:00
barredterra
e1140a22b8
fix: don't presume english as source language
...
Note: If we DO want this, it should happen at a higher level.
2023-12-26 23:18:07 +01:00
barredterra
483fa15c8f
fix: clear translation cache
...
- Cache was not getting cleared, since it's user-specific
- Remove unused implementation from gettext
2023-12-26 23:17:31 +01:00
barredterra
3a76fb2253
feat: support CSV and gettext at the same time
2023-12-26 19:13:10 +01:00
Hussain Nagaria
8d2137c265
docs: consistent doc strings
2023-12-18 18:27:39 +05:30
barredterra
c35476256f
refactor: simplify conditional logic
...
Command: `sourcery review --fix --enable de-morgan .`
2023-12-05 11:14:41 +01:00
HarryPaulo
4203c3b13d
fix: load languages that have capital letters
2023-11-20 22:31:12 -03:00
barredterra
e3ff2456ef
chore: remove unused method
2023-11-06 19:46:34 +01:00
Raffael Meyer
f0155674a5
refactor!: remove redundant sending of translations ( #22962 )
...
* chore!: remove redundant translation
* refactor!: remove "get_translated_dict" hook
Instead, include the results from
`frappe.geo.country_info.get_translated_dict` in `get_all_translations`.
* test: money_in_words uses translated currency
... and now we have translations.
* Revert "test: money_in_words uses translated currency"
This reverts commit e07d594ac1ce4b120c0fceb5d23377cb981fe820.
* refactor!: stop translating timezone and currency
* refactor: rename `get_translated_dict`
... to `get_translated_countries`
2023-11-02 20:04:14 +05:30
barredterra
41b0308951
refactor: use higher level get_app_path
...
It's just nicer to read; less mental load.
2023-08-21 17:15:45 +02:00
barredterra
88c8baa9ee
refactor: for append to extend, merge list extend
...
Replace a for append loop with list extend.
Create the list with values instead of creating
an empty list and extending it with another list.
2023-08-09 13:25:39 +02:00