Skip to content

Add documentation on how to change locale#245

Open
gsidhu wants to merge 1 commit intokaisermann:mainfrom
gsidhu:patch-1
Open

Add documentation on how to change locale#245
gsidhu wants to merge 1 commit intokaisermann:mainfrom
gsidhu:patch-1

Conversation

@gsidhu
Copy link

@gsidhu gsidhu commented Feb 23, 2024

Before submitting the PR, please make sure you do the following

  • It's really useful if your PR relates to an outstanding issue, so please reference it in your PR, or create an explanatory one for discussion. In many cases features are absent for a reason.
  • This message body should clearly illustrate what problems it solves. If there are related issues, remember to reference them.
  • Ideally, include a test that fails without this PR but passes with it. PRs will only be merged once they pass CI. (Remember to npm run lint!)

Tests

  • Run the tests tests with npm test or yarn test

As pointed out in Issue #188, the Getting Started documentation is missing information on how to switch the app locale. This PR adds a tiny snippet to the end of the existing documentation with the relevant code to switch the language.

This should make it easier for new users (like me!) to get started even faster.


See [Formatting](/docs/Formatting.md) to read about the supported message syntax and all the available formatters.

You can switch the current locale in your app using `locale` –

Choose a reason for hiding this comment

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

Suggested change
You can switch the current locale in your app using `locale`
You can switch the current locale in your app using `locale.set`:

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.

2 participants