Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

generatePermalink should work if content is not in a language directory #195

Closed
greatislander opened this issue Aug 3, 2023 · 0 comments · Fixed by #196 or #197
Closed

generatePermalink should work if content is not in a language directory #195

greatislander opened this issue Aug 3, 2023 · 0 comments · Fixed by #196 or #197
Assignees
Labels
bug Something isn't working
Milestone

Comments

@greatislander
Copy link
Contributor

Describe the bug

Right now the generatePermalink utility tries to determine the content language:

const lang = EleventyI18nPlugin.LangUtils.getLanguageCodeFromInputPath(data.page.inputPath);

However, this should be done in directory data files and passed to the helper in the data object so that the generatePermalink utility works even when there is only one (default) language.

@greatislander greatislander added the bug Something isn't working label Aug 3, 2023
@greatislander greatislander self-assigned this Aug 3, 2023
@greatislander greatislander added this to the 2.3.0 milestone Aug 3, 2023
greatislander added a commit that referenced this issue Aug 3, 2023
…195)

feat: allow string translation to be disabled (fix #194)
greatislander added a commit that referenced this issue Aug 3, 2023
…) (#196)

fix: allow generatePermalink to work for unlocalized content (fix #195)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
1 participant