add Hungarian

This commit is contained in:
dm
2021-03-23 22:30:37 +01:00
parent d196af739c
commit 9018a233a1
5 changed files with 25 additions and 4 deletions

View File

@@ -110,7 +110,10 @@
</label>
<label class="radio" v-bind:class="{checked: user.prefs_language=='es'}" v-on:click="save_user_language('es')">
<input type="radio" id="user-preferences_language" name="language" value="es"><span>Español</span>
</label>
</label>
<label class="radio" v-bind:class="{checked: user.prefs_language=='hu'}" v-on:click="save_user_language('hu')">
<input type="radio" id="user-preferences_language" name="language" value="hu"><span>Magyar</span>
</label>
</div>
</div>

View File

@@ -18,7 +18,7 @@
webEndpoint: location.origin,
apiEndpoint: location.origin,
websocketsEndpoint: location.origin.replace("https:","wss:").replace("http:","ws:"),
options: <%- config.spacedeck ? JSON.stringify(config.spacedeck) : "{}" %>
options: <%- config && config.spacedeck ? JSON.stringify(config.spacedeck) : "{}" %>
};
</script>
@@ -79,10 +79,12 @@
window.locales.fr = {};
window.locales.oc = {};
window.locales.es = {};
window.locales.hu = {};
window.locales.en.translation = <%- include("./../locales/en.js") %>;
window.locales.de.translation = <%- include("./../locales/de.js") %>;
window.locales.fr.translation = <%- include("./../locales/fr.js") %>;
window.locales.oc.translation = <%- include("./../locales/oc.js") %>;
window.locales.es.translation = <%- include("./../locales/es.js") %>;
window.locales.hu.translation = <%- include("./../locales/hu.js") %>;
</script>
</html>