FreshDesk Multiple Languages

Hello,

I want to support multiple languages on my FreshDesk App. However, I don’t know whether I have to do it manually through HTML, js, or is there any library I can use that supports it? Where can I start with? Can you suggest a way to support multiple languages in FD, like some external libraries?

Thank you very much
Nhat Nguyen

Hey @Nhat_Nguyen

If you choose to write your front end app in vue js or other similar frameworks, you can use packages like Vue I18n

If its going to be Vanilla js app, you can setup something like GitHub - thealphadollar/vanilla-i18n: A super lightweight JS library to provide translations on websites using language JSON files.

Let me know if you need any help in implementing it. More happy to help :slight_smile:

2 Likes

Hello,

I’m using Vanilla js app, so I tried using the library you recommend (GitHub - thealphadollar/vanilla-i18n: A super lightweight JS library to provide translations on websites using language JSON files.) and I have faced some issues.
As fdk validate doesn’t allow async/await, while this library contains async/await, therefore, it can’t be packed.
Moreover, I have tried the demo src they provided, it doesn’t work and show CORs problem.
When I tried in the project run with fdk, I got the error when fetching json file GET http://localhost:10001/scripts/vanilla-i18n/en.json 404 (Not Found), though I think my route is right.
image

If the library problem can not be solved, I can implement it manually by Jquery.

Thank you very much,
Nhat Nguyen

Hello,

I wonder how is it going. I’m looking forward for the answer

Hey

Apologies for the late reply

Can you try to include this

<script src="https://cdn.jsdelivr.net/gh/thealphadollar/vanilla-i18n/src/vanilla-i18n.min.js"></script>

in your template.html. Its just a cdn script to be included in your app. This way we don’t have their code in local