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

Add global locale #1441

Closed
Shinigami92 opened this issue Oct 13, 2022 · 2 comments · Fixed by #1748
Closed

Add global locale #1441

Shinigami92 opened this issue Oct 13, 2022 · 2 comments · Fixed by #1748
Assignees
Labels
c: locale Permutes locale definitions p: 1-normal Nothing urgent s: accepted Accepted feature / Confirmed bug

Comments

@Shinigami92
Copy link
Member

Shinigami92 commented Oct 13, 2022

We want to move global locale data out of locale definitions to their related modules.
These data are the same for every language and therefore doesn't need to exist in locale en or be override-able by any other locale.

Example: mime-types, emojis, ...

@Shinigami92 Shinigami92 added p: 1-normal Nothing urgent c: locale Permutes locale definitions labels Oct 13, 2022
@Shinigami92 Shinigami92 self-assigned this Oct 13, 2022
@Shinigami92 Shinigami92 moved this to Todo in Faker Roadmap Oct 13, 2022
@ST-DDT ST-DDT added the s: accepted Accepted feature / Confirmed bug label Oct 13, 2022
@ST-DDT
Copy link
Member

ST-DDT commented Jan 17, 2023

I think we should rather introduce a global locale.
Like any of our other data there is no reason why we shouldn't make them replaceable.

@Shinigami92
Copy link
Member Author

As it doesn't make a difference if we put them in global locale or in the source directly, I'm fine with that, esm/cjs would duplicate them any way
We can only get rid of this duplication in the long run by getting rid of cjs in total 🤷

So yes, lets do it that way 👍

@Shinigami92 Shinigami92 linked a pull request Jan 17, 2023 that will close this issue
@ST-DDT ST-DDT changed the title Move global locale data to their modules Add global locale Jan 26, 2023
@github-project-automation github-project-automation bot moved this from Todo to Done in Faker Roadmap Mar 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: locale Permutes locale definitions p: 1-normal Nothing urgent s: accepted Accepted feature / Confirmed bug
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants