Translate change-language.js
DeAlexPesh opened this issue · 1 comments
DeAlexPesh commented
Add please prefix
const [languagesResponse, currentLanguageResponse] = await Promise.all([
- fetch('/get-languages'),
- fetch('/get-locale')
+ fetch(`${url_prefix}/get-languages`),
+ fetch(`${url_prefix}/get-locale`)
]);
function changeLanguage(lang) {
- fetch("/change-language", {
+ fetch(`${url_prefix}/change-language`, {
en_US -> English
etc.
ramon-victor commented
Ty