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

feat: Put strings in resources for both backend and frontend #374

Open
dukeofharen opened this issue Aug 13, 2024 · 1 comment
Open

feat: Put strings in resources for both backend and frontend #374

dukeofharen opened this issue Aug 13, 2024 · 1 comment
Labels
enhancement Enhancement of the code, not introducing new features.

Comments

@dukeofharen
Copy link
Owner

For the backend, I will use the .NET .resx format. For the frontend, the translations will be put in a localizable .ts file.

@dukeofharen dukeofharen added the enhancement Enhancement of the code, not introducing new features. label Aug 13, 2024
@dukeofharen
Copy link
Owner Author

dukeofharen commented Aug 13, 2024

With the following code, the language can be set in the .NET backend:

var culture = new CultureInfo("nl_NL");
CultureInfo.DefaultThreadCurrentCulture = culture;
CultureInfo.DefaultThreadCurrentUICulture = culture;

It should be executed as part of a piece of middleware.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement of the code, not introducing new features.
Projects
None yet
Development

No branches or pull requests

1 participant