Category: Widget
Resource links
Updated

This solution is summarized from an archived support forum post. This information may have changed. If you notice an error, please let us know in Discord.

Language Other Than English

Issue

I am wondering if it is possible to display widget labels in a different language in Appsmith. However, I found out that while I can manually type in another language for widget labels, the automatic translation feature is not yet available. Additionally, there is a bug related to converting day labels, month names, and other similar labels to another language using the Moment.js library in Appsmith. The team is currently working on fixing this issue.

Resolution

By entering the desired text, you can display widget labels like those in the Date Picker or Table Filter Panel in another language. However, automatic translations from English to other languages are not yet supported.

For day labels, month names, and today/yesterday labels, this can be achieved using the Moment.js library. Here's an example:

moment.locale('fr'); // Set locale to French

const formattedDate = moment().format('LL'); // Example: "4 septembre 2024"
console.log(formattedDate);

You can refer to the Moment.js documentation for more details here. However, please note that a bug is currently affecting locale conversions, and is not functioning as expected. The Appsmith team is aware of the issue. You can track the progress of this bug here.