意外的语言代码

我认为无效的代码来自 Discourse。

也许应该将 hreflang="<%= locale %>" 改为 hreflang="<%= locale.tr('_', '-') %>",以替换下划线。

2 个赞