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

[API Feature Request] Add possibility for multi-language support #75

Closed
tonka3000 opened this issue Oct 17, 2021 · 1 comment
Closed
Labels
api Issues related to API feature request New feature or improvement

Comments

@tonka3000
Copy link
Contributor

I was not able to receive env-var infos about the OS language during implementing #74. This is based on the fact that raycast only set specific env-vars for the node process.

It would be great when raycast set an env-var (or maybe another typescript-API) to receive the OS language of the user. There are multiple variants I can think of

Variant 1

Pass the LANG, LANGUAGE, LC_ALL, LC_MESSAGES (if they exist) from raycast to the raycast node process. This would be easy to do and maybe other node packages will be based on the same fact.

Variant 2

Raycast provide it's own env-var/typescript-api to make it possible to receive the information in an extension. This variant would be my personal favorite, because raycast can make the access to this setting easy for extension devs.

Describe the feature and the current behavior/state.

Typically I receive the OS language with the following line of code.

const lang = env.LANG || env.LANGUAGE || env.LC_ALL || env.LC_MESSAGES;

This is not possible in raycast right now, so I'm not able to receive the OS language.

Will this change the current api? How?

No.

Who will benefit with this feature?

Everyone which want to build a multi-language extension for raycast.

Any Other info.

No.

@tonka3000 tonka3000 added api Issues related to API feature request New feature or improvement labels Oct 17, 2021
@PitNikola
Copy link
Member

As I mentioned in my comment here, at the moment we have no plans to support localization in the app in near future. I'm gonna close that issue for now.

@tonka3000 tonka3000 mentioned this issue Oct 27, 2021
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Issues related to API feature request New feature or improvement
Projects
None yet
Development

No branches or pull requests

2 participants