Skip to content

Commit

Permalink
fix(device): return short language code in web (#893)
Browse files Browse the repository at this point in the history
  • Loading branch information
IT-MikeS authored Mar 23, 2022
1 parent 37a2770 commit 07f0887
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion device/src/web.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export class DeviceWeb extends WebPlugin implements DevicePlugin {

async getLanguageCode(): Promise<GetLanguageCodeResult> {
return {
value: navigator.language,
value: navigator.language.split('-')[0].toLowerCase(),
};
}

Expand Down

0 comments on commit 07f0887

Please sign in to comment.