Ticket T1284627
Visible to All Users

Chat Component Localization Problem for DevExtreme .Net Core Controls

created 6 days ago

I am developing a .Net Core MVC web application with DevExtreme and I can't solve a problem.

I added the DxChat object to a cshtml page (rendered on server side with Razor, not React or Angular etc.) but although I can get localization in all other controls, the Chat object always shows English content. I couldn't find how to get the translation of the following sentences from your localization service either.

"There are no messages in this chat", "Write your first message" and "Type a message" statements that you used as placeholder.
Thanks for your help.

Answers approved by DevExpress Support

created 6 days ago

Hello,

All dictionaries are curated by the community. To recommend changes to our localization dictionaries, you can fork the DevExtreme repository, create a branch with your modifications, and share the link to this branch here. We will review these changes and submit a pull request to incorporate your translations to the source code. We look forward to including your updates in the next release.

If you want to change the translation locally, you can find all the dictionaries on your local machine in the DevExtreme installation folder's or ZIP archive's Lib\js\localization directory. These dictionaries are also available on npm.

You can use English dictionary fields as references for keys.

JSON
"dxChat-elementAriaLabel": "Chat", "dxChat-textareaPlaceholder": "Type a message", "dxChat-sendButtonAriaLabel": "Send", "dxChat-defaultUserName": "Unknown User", "dxChat-messageListAriaLabel": "Message list", "dxChat-alertListAriaLabel": "Error list", "dxChat-emptyListMessage": "There are no messages in this chat", "dxChat-emptyListPrompt": "Write your first message", "dxChat-typingMessageSingleUser": "{0} is typing...", "dxChat-typingMessageTwoUsers": "{0} and {1} are typing...", "dxChat-typingMessageThreeUsers": "{0}, {1} and {2} are typing...", "dxChat-typingMessageMultipleUsers": "{0} and others are typing...",

Please let me know if you have additional questions.

Regards,
Assylbek

    Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

    Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.