Skip to content

Commit

Permalink
fix: remove deprecated custom lang param
Browse files Browse the repository at this point in the history
  • Loading branch information
peterschewe committed Jun 21, 2024
1 parent d756b30 commit 8b00c0a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions packages/cssg-plugin-hugo/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};

Expand Down

0 comments on commit 8b00c0a

Please sign in to comment.