Skip to content

Conversation

@Honeyxilia
Copy link
Contributor

No description provided.

Lena Montenot added 2 commits March 23, 2023 12:32
@Honeyxilia
Copy link
Contributor Author

@davidtaylorhq

Hello ! As per the effort of the forum we're currently holding, and to allow localization, we've added an attribute "locale" to links, which allows filtering of links according to the HTML's lang attribute !

For instance, if the link has "fr" tag for the french page, but the browser client has the english as default, then the link will not be pushed to the site's HTML :)

Thank you in advance for revieweing !

@jordanvidrine jordanvidrine merged commit 0661c62 into discourse:main Apr 21, 2023
@Honeyxilia Honeyxilia deleted the add-locale-to-links branch April 21, 2023 13:45
Arkshine added a commit to Arkshine/discourse-custom-header-links that referenced this pull request Apr 22, 2023
Related discourse#30. Reported here: https://meta.discourse.org/t/missing-custom-header-links-after-update/262594 #### Current behavior The links are not displayed if a locale is not provided in the setting. #### Expected behavior By not associating a locale with a link, the link should be displayed by default regardless of the user's language.
Arkshine added a commit to Arkshine/discourse-custom-header-links that referenced this pull request Apr 22, 2023
Related discourse#30. Reported here: https://meta.discourse.org/t/missing-custom-header-links-after-update/262594 #### Current behavior The links are not displayed if a locale is not provided in the setting. #### Expected behavior By not associating a locale with a link, the link should be displayed by default regardless of the user's language.
jordanvidrine pushed a commit that referenced this pull request Apr 24, 2023
#31) Related #30. Reported here: https://meta.discourse.org/t/missing-custom-header-links-after-update/262594 #### Current behavior The links are not displayed if a locale is not provided in the setting. #### Expected behavior By not associating a locale with a link, the link should be displayed by default regardless of the user's language.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants