We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed76ae0 commit 8d3125fCopy full SHA for 8d3125f
javascripts/discourse/components/custom-header-links.js
@@ -2,7 +2,7 @@ import Component from "@glimmer/component";
2
import { dasherize } from "@ember/string";
3
4
function normalizeLocale(locale) {
5
- return locale?.toLowerCase().replace(/-/g, "_");
+ return locale?.trim().toLowerCase().replace(/[-_]/g, "_");
6
}
7
export default class CustomHeaderLinks extends Component {
8
get shouldShow() {
0 commit comments