Skip to content

Commit

Permalink
Merge pull request #53 from Gwenillia/staging
Browse files Browse the repository at this point in the history
v2.0.0-rc.2
  • Loading branch information
Gwenillia authored Jan 14, 2023
2 parents ce354bc + 9577bf5 commit 1a1f395
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 1a1f395

Please sign in to comment.