Skip to content

Commit

Permalink
chore: platform i18n windows won't fallback to unix
Browse files Browse the repository at this point in the history
  • Loading branch information
Hazer authored May 12, 2024
1 parent 2db5a07 commit 3d685de
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src_assets/common/assets/web/platform-i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ class PlatformMessageI18n {
return message
}

// If on Windows, we don't fallback to unix, so return early
if (this.platform === 'windows') {
return defaultMsg ? defaultMsg : message
}

// there's no message for key, check for unix version
const unixKey = this.getPlatformKey(key, 'unix')
message = i18n.t(unixKey)
Expand Down

0 comments on commit 3d685de

Please sign in to comment.