Skip to content

Commit a42f089

Browse files
author
sqrtthree
committed
♻️ refactor: Tweaks the names of some variables
Signed-off-by: sqrtthree <[email protected]>
1 parent 2ec11bd commit a42f089

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

components/Sidebar/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,12 @@ export default {
8484
this.$localePath
8585
)
8686
87-
const langTitle = config.get(this.$site, 'selectText', this.$localePath) || 'other-languages'
87+
const languageSelectText = config.get(this.$site, 'selectText', this.$localePath) || 'languages'
8888
8989
if (groupOrderConfig) {
9090
const result = groupOrderConfig.slice()
9191
92-
result.unshift(langTitle, 'home')
92+
result.unshift(languageSelectText, 'home')
9393
9494
return result
9595
} else {

utils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,12 @@ export function resolveSidebarItems($page, $site, $localePath) {
7676

7777
if ($site.locales) {
7878
let localeTheme = {};
79-
79+
8080
if (themeConfig.locales) {
8181
localeTheme = themeConfig.locales[$localePath]
8282
}
8383

84-
languageSelectText = localeTheme.selectText || 'other-languages'
84+
languageSelectText = localeTheme.selectText || 'languages'
8585

8686
sidebars[languageSelectText] = {
8787
title: languageSelectText,

0 commit comments

Comments
 (0)