diff --git a/packages/cssg-plugin-hugo/index.js b/packages/cssg-plugin-hugo/index.js index 218ad01..19c1a93 100644 --- a/packages/cssg-plugin-hugo/index.js +++ b/packages/cssg-plugin-hugo/index.js @@ -286,12 +286,10 @@ export default (args) => { const { code, name: languageName } = locale; const languageCode = code; - const [languageNameShort] = languageCode.split('-'); const localeConfig = { languageCode, languageName, - languageNameShort, weight: locale.default ? 1 : 2, };