Skip to content

Commit

Permalink
chore(docs): update to reflect changes
Browse files Browse the repository at this point in the history
Co-authored-by: Justin Obara <[email protected]>
  • Loading branch information
greatislander and jobara authored Dec 5, 2024
1 parent 89dfe70 commit 9c5d876
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ export default {
langDir: data => data.supportedLanguages[data.lang].dir,
locale: data => data.lang,
permalink: data => {
// Only localize the permalink if the locale and translations global data are present.
// Only localize the permalink if the locale or translations global data are present.
if (data.hasOwnProperty("lang") || data.hasOwnProperty("translations")) {
return generatePermalink(data, "pages", __("pages", {}, data), __("pages", {}, data));
}
Expand Down

0 comments on commit 9c5d876

Please sign in to comment.