function updateAvailableTranslations(enabledTranslations) {
    /**
     * @type {HTMLOptionElement[]}
     */
    const options = [];

    for (const translation of enabledTranslations) {
        const option = document.createElement('option');
        option.value = translation;
        option.textContent = translation;
        option.className = `translation-btn--${translation}`;
        options.push(option);
    }

    selectEditorTranslation.replaceChildren(...options);
    selectEditorTranslation.value = currentLanguage;
}
@param {string[]} enabledTranslations
@param {typeof defaultState} state