App Connect Data Formatter Support Product Page
Answered
Format date, international set for names of months/days
Asked 27 Nov 2017 09:29:03
1
has this question
27 Nov 2017 09:29:03 Michele - posted:
Hello... how can I change the name of months/days for other languages?{{data_news.formatDate("dd MMMM yyyy" )}}
Example:
from English: 11 May 2017
to Italian: 11 maggio 2017
With traditional php format code, I'm usually used:
<?php
setlocale( LC_TIME, 'ita', 'it_IT' );
?>
Replies
Replied 27 Nov 2017 09:39:03
27 Nov 2017 09:39:03 Teodor Kuduschiev replied:
Hello Michele,
The app connect data formatter is not using PHP as it is a fron-end tool, so you should translate them if you wish, just open the: dmxFormatter.js and replace the following with your own translations:
and
The app connect data formatter is not using PHP as it is a fron-end tool, so you should translate them if you wish, just open the: dmxFormatter.js and replace the following with your own translations:
["January","February","March","April","May","June","July","August","September","October","November","December"]
and
["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]
Replied 27 Nov 2017 09:46:50
27 Nov 2017 09:46:50 Michele - replied:
Ok but I've to use it on a international app/website with multiple languages.
If I change dmxFormatter.js all the months will be in that language, is it correct?
Also, your system automatically updates the files of the extensions, so every time I should go to change them manually, which could in the long run be very problematic (in the years I could forget about this change).
Is there any other solution?
Thanks
If I change dmxFormatter.js all the months will be in that language, is it correct?
Also, your system automatically updates the files of the extensions, so every time I should go to change them manually, which could in the long run be very problematic (in the years I could forget about this change).
Is there any other solution?
Thanks
Replied 27 Nov 2017 09:48:07
27 Nov 2017 09:48:07 Teodor Kuduschiev replied:
This is the only solution, when you enter this in the file, it will be displayed in this language only.
Replied 27 Nov 2017 09:54:24
27 Nov 2017 09:54:24 Michele - replied:
I understand but this is a big limit, the world doesn't only speak English and multi-language websites are needed for foreign companies.
Anyway thanks Teodor for the fast response.
Anyway thanks Teodor for the fast response.
Replied 27 Nov 2017 09:57:21
27 Nov 2017 09:57:21 Teodor Kuduschiev replied:
I will discuss this with the developers, maybe we can develop a multi-langauge date/time addon for the data-formatter.
Replied 27 Nov 2017 10:02:16
27 Nov 2017 10:02:16 Michele - replied:
Thanks, the addon would be an excellent solution!
Replied 01 Feb 2018 11:29:26
01 Feb 2018 11:29:26 Michele - replied:
Hi Teodor,
news about this addon for multi-language support?
Thanks!
news about this addon for multi-language support?
Thanks!
Replied 01 Feb 2018 11:45:19
01 Feb 2018 11:45:19 Teodor Kuduschiev replied:
Hi Michele,
No not yet, as this function is not one of the most-wanted features, so it is not planned for the very near future.
No not yet, as this function is not one of the most-wanted features, so it is not planned for the very near future.
Replied 01 Feb 2018 13:11:48
01 Feb 2018 13:11:48 Michele - replied:
Ok, for me it's an essential feature but I understand.
I hope that Wappler will not have limitations of this kind, otherwise it will be difficult to propose it in markets where English is not spoken as a mother tongue.
I hope that Wappler will not have limitations of this kind, otherwise it will be difficult to propose it in markets where English is not spoken as a mother tongue.