Skip to content
This repository was archived by the owner on Feb 23, 2021. It is now read-only.
This repository was archived by the owner on Feb 23, 2021. It is now read-only.

Detect currency based on locale #486

@tanx

Description

@tanx

Electron has an api to detect the current locale: https://electronjs.org/docs/api/locales

N.B. this api needs to be called after the ready event in the main process to work correctly.

We can then send the locale string via IPC to the rendering process and detect the local currency using:
https://github.com/tadeegan/locale-currency

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions