Add language priority feature flag

This commit adds a new 'languagePriority' key to the feature flags configuration. It determines whether to use user's preferred language or the application's default language. Adjustments to the language selection process according to new flag have been made in the 'createInstance' function in 'i18n.server.ts'. Additionally, updates have been made to 'README.md' and '.env' files to reflect these changes.
This commit is contained in:
giancarlo
2024-04-23 22:51:45 +07:00
parent e19af9af52
commit 448fee01c4
5 changed files with 56 additions and 30 deletions

View File

@@ -2,7 +2,7 @@
Please set the following environment variable:
```
```bash
NEXT_PUBLIC_MONITORING_PROVIDER=sentry
NEXT_PUBLIC_SENTRY_DSN=your_dsn
```