Skip to content

Commit

Permalink
Merge pull request #51 from Gwenillia/v2.0.0-rc.2
Browse files Browse the repository at this point in the history
set howrse.com to 'en' translation key (other regions uses their .xx LTD)
  • Loading branch information
Gwenillia authored Jan 14, 2023
2 parents ce354bc + 5a10ea9 commit 9577bf5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions translation.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ class Translation {
const hostname = (new URL(url)).hostname
if (hostname.includes('equideow')) {
return 'fr'
} else if (hostname.includes('howrse.com')) {
return 'en'
}

return hostname.match(/\.([^.]+)$/)[1]
Expand Down

0 comments on commit 9577bf5

Please sign in to comment.