Ankush Menat | 67e6472 | 2021-04-16 21:44:49 +0530 | [diff] [blame] | 1 | // ruleid: frappe-translation-empty-string |
| 2 | __("") |
| 3 | // ruleid: frappe-translation-empty-string |
| 4 | __('') |
| 5 | |
| 6 | // ok: frappe-translation-js-formatting |
| 7 | __('Welcome {0}, get started with ERPNext in just a few clicks.', [full_name]); |
| 8 | |
| 9 | // ruleid: frappe-translation-js-formatting |
| 10 | __(`Welcome ${full_name}, get started with ERPNext in just a few clicks.`); |
| 11 | |
| 12 | // ok: frappe-translation-js-formatting |
| 13 | __('This is fine'); |
| 14 | |
| 15 | |
| 16 | // ok: frappe-translation-trailing-spaces |
| 17 | __('This is fine'); |
| 18 | |
| 19 | // ruleid: frappe-translation-trailing-spaces |
| 20 | __(' this is not ok '); |
| 21 | // ruleid: frappe-translation-trailing-spaces |
| 22 | __('this is not ok '); |
| 23 | // ruleid: frappe-translation-trailing-spaces |
| 24 | __(' this is not ok'); |
| 25 | |
| 26 | // ok: frappe-translation-js-splitting |
| 27 | __('You have {0} subscribers in your mailing list.', [subscribers.length]) |
| 28 | |
| 29 | // todoruleid: frappe-translation-js-splitting |
| 30 | __('You have') + subscribers.length + __('subscribers in your mailing list.') |
| 31 | |
| 32 | // ruleid: frappe-translation-js-splitting |
| 33 | __('You have' + 'subscribers in your mailing list.') |
| 34 | |
| 35 | // ruleid: frappe-translation-js-splitting |
| 36 | __('You have {0} subscribers' + |
| 37 | 'in your mailing list', [subscribers.length]) |
Ankush Menat | b1f8c80 | 2021-05-11 18:27:20 +0530 | [diff] [blame] | 38 | |
| 39 | // ok: frappe-translation-js-splitting |
| 40 | __("Ctrl+Enter to add comment") |
| 41 | |
| 42 | // ruleid: frappe-translation-js-splitting |
| 43 | __('You have {0} subscribers \ |
| 44 | in your mailing list', [subscribers.length]) |