Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

locale: Deprecate currency information #3278

Merged
merged 8 commits into from
Mar 25, 2024

Conversation

atjn
Copy link
Contributor

@atjn atjn commented Mar 20, 2024

Closes #3269

The currency information now always returns British pounds no matter the locale.

Using the currency method logs a deprecation warning. The TS types are also updated to mark the API as deprecated.

The raw currency data is removed because we don't use it.

I have tested these changes and could not find any issues.

Copy link
Collaborator

@bobrippling bobrippling left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, a few little things

apps/locale/ChangeLog Outdated Show resolved Hide resolved
apps/locale/locale.html Outdated Show resolved Hide resolved
typescript/types/locale.d.ts Outdated Show resolved Hide resolved
@gfwilliams
Copy link
Member

Looks good - thanks!

@bobrippling is that locale.ts file autogenerated, so Espruino itself should be updated to add the deprecated label?

@gfwilliams gfwilliams merged commit 95994b7 into espruino:master Mar 25, 2024
1 check passed
@atjn atjn deleted the deprecate-currency branch March 25, 2024 17:45
@bobrippling
Copy link
Collaborator

locale.d.ts is manually generated in fact, we could move the .d.ts to sit next to its source js, but I think that would complicate trying to then import them into BangleApps, assuming they change not very frequently

@gfwilliams
Copy link
Member

Yes, I think it's best as-is... Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deprecate currency information in locale
3 participants