Skip to content

Commit

Permalink
Fied language translate bug
Browse files Browse the repository at this point in the history
  • Loading branch information
LorenzoJokhan committed Aug 31, 2023
1 parent 644668b commit cc66773
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ apos.on('ready', function () {
changeTextInNodes(nlContents, nodes);
setSelectEnabled(select);
saveLanguagePreference(targetLanguageCode);
syncOtherTranslationWidgets(targetLanguageCode);
} else {
console.log('translating to', targetLanguageCode);

Expand Down
2 changes: 1 addition & 1 deletion packages/cms/views/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ <h2 class="header-subtitle">
{% if data.global.translateInMenu %}
<div class="{{ 'col-xs-2' if data.global.hideSiteTitle else 'col-sm-1 col-md-1' }} hidden-xs">
<ul class="top-links">
<select id="translation-widget-select-global" class="translation-widget-select compact" selected="nl">
<select translate="no" id="translation-widget-select-global" class="translation-widget-select compact" selected="nl">
{% for language in data.global.languages %}
{% if language.code === 'nl' %}
<option translate="no" value="{{language.code}}" selected='selected' class="translation-widget-select-option">{{language.code}}</option>
Expand Down

0 comments on commit cc66773

Please sign in to comment.