34 lines
1.5 KiB
HTML
34 lines
1.5 KiB
HTML
<!-- Material Icons voor icoontjes in de interface -->
|
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0">
|
|
|
|
<!-- Chat client JS - bundled met alle componenten en ES modules -->
|
|
<script src="{{url_for('static', filename='dist/chat-client.js')}}"></script>
|
|
<script>
|
|
// Voeg taalinstellingen toe aan chatConfig indien deze nog niet bestaan
|
|
if (window.chatConfig) {
|
|
// Maak supportedLanguages beschikbaar voor de client
|
|
window.chatConfig.supportedLanguages = [
|
|
{% for lang_code in config.SUPPORTED_LANGUAGES %}
|
|
{
|
|
code: "{{ lang_code }}",
|
|
name: "{{ config.SUPPORTED_LANGUAGE_DETAILS[config.SUPPORTED_LANGUAGES_FULL[loop.index0]]['iso 639-1'] }}",
|
|
flag: "{{ config.SUPPORTED_LANGUAGE_DETAILS[config.SUPPORTED_LANGUAGES_FULL[loop.index0]]['flag'] }}"
|
|
}{% if not loop.last %},{% endif %}
|
|
{% endfor %}
|
|
];
|
|
|
|
// Voeg tenantMake toe aan chatConfig als die nog niet bestaat
|
|
if (!window.chatConfig.tenantMake) {
|
|
window.chatConfig.tenantMake = {
|
|
name: "{{ tenant_make.name|default('EveAI') }}",
|
|
logo_url: "{{ tenant_make.logo_url|default('') }}"
|
|
};
|
|
}
|
|
|
|
console.log('Taalinstellingen toegevoegd aan chatConfig');
|
|
} else {
|
|
console.warn('chatConfig is niet gedefinieerd in scripts.html');
|
|
}
|
|
</script>
|
|
|