Skip to content

Commit

Permalink
fix: rename locale control (#473)
Browse files Browse the repository at this point in the history
  • Loading branch information
uyarn authored Apr 7, 2024
1 parent 2b48ba2 commit 34de763
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/components/src/components/td-header/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ function renderLinks(host, headerList, platform, framework) {
document.dispatchEvent(new CustomEvent('tdesign_site_lang', { detail: nextLang }));
}

const translateLink = host.enabledLocale
const translateLink = !host.disabledLocale
? html`
<div class="TDesign-header-nav__translate" onclick="${handleTranslate}">
<span class="TDesign-header-nav__translate-icon" innerHTML="${translateIcon}"></span>
Expand Down Expand Up @@ -213,7 +213,7 @@ export default define({
platform: 'web',
framework: 'vue',
disabledTheme: false,
enabledLocale: true,
disabledLocale: false,
notice: {
get: (_host, lastValue) => lastValue || {},
set: (_host, value) => value,
Expand Down Expand Up @@ -264,7 +264,6 @@ export default define({
},
render: (host) => {
const { platform, framework, disabledTheme, collapseMenu } = host;

return html`
${renderNotice(host)}
<header class="TDesign-header">
Expand Down

0 comments on commit 34de763

Please sign in to comment.