blob: 7b92fe2dffb83fd36e040bfb636eb955ef1e1f9f [file] [log] [blame]
Ankush Menat67e64722021-04-16 21:44:49 +05301// 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])