Skip to content

Commit

Permalink
♻️ refactor: Tweaks the names of some variables
Browse files Browse the repository at this point in the history
Signed-off-by: sqrtthree <[email protected]>
  • Loading branch information
linhe0x0 committed Jul 22, 2018
1 parent 2ec11bd commit a42f089
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions components/Sidebar/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,12 @@ export default {
this.$localePath
)
const langTitle = config.get(this.$site, 'selectText', this.$localePath) || 'other-languages'
const languageSelectText = config.get(this.$site, 'selectText', this.$localePath) || 'languages'
if (groupOrderConfig) {
const result = groupOrderConfig.slice()
result.unshift(langTitle, 'home')
result.unshift(languageSelectText, 'home')
return result
} else {
Expand Down
4 changes: 2 additions & 2 deletions utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,12 @@ export function resolveSidebarItems($page, $site, $localePath) {

if ($site.locales) {
let localeTheme = {};

if (themeConfig.locales) {
localeTheme = themeConfig.locales[$localePath]
}

languageSelectText = localeTheme.selectText || 'other-languages'
languageSelectText = localeTheme.selectText || 'languages'

sidebars[languageSelectText] = {
title: languageSelectText,
Expand Down

0 comments on commit a42f089

Please sign in to comment.