You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/Configuration/Configuration.md
+26Lines changed: 26 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -77,6 +77,32 @@ LANGS=en_GB # Available languages
77
77
SYSTEM_DEFAULTLOCALE=en-GB # Default language
78
78
```
79
79
80
+
**How language selection works:**
81
+
82
+
Stirling-PDF determines the interface language using this priority order:
83
+
84
+
1.**User's manual selection** (highest priority)
85
+
- When a user clicks the language globe icon and selects a language
86
+
- Choice is stored in browser's localStorage (persists across sessions)
87
+
- Storage key: `i18nextLng`
88
+
89
+
2.**Browser's language preference**
90
+
- Automatically detected from browser's `Accept-Language` header via the `navigator` API
91
+
- Example: Firefox set to Swedish (sv-SE) will show Swedish UI
92
+
93
+
3.**System default locale** (lowest priority)
94
+
- Set via `SYSTEM_DEFAULTLOCALE` or `system.defaultLocale`
95
+
- Only applied if user has no localStorage preference (first-time visitors)
96
+
97
+
**Example:**
98
+
- Config: `SYSTEM_DEFAULTLOCALE=en_GB`
99
+
- Browser: Swedish (sv-SE)
100
+
- Result: UI shows Swedish (browser preference overrides config)
101
+
102
+
To force a specific default language regardless of browser settings, users must manually select it via the language globe icon.
103
+
104
+
> 💡 **Tip**: Set `SYSTEM_DEFAULTLOCALE` to your organization's primary language. Users can always override it using the language selector in the top-right corner.
@@ -36,7 +36,7 @@ You can configure the new `Datasource` property in your `settings.yml` to connec
36
36
```
37
37
38
38
- `enableCustomDatabase`: Set this property to `true` to enable use of the custom database **Note: An enterprise license to use this feature**
39
-
- `customDatabaseUrl`: Enter the database connection url for the database here. **Note: If you set the `customDatabaseUrl` you do not need to set the type, hostName, port and name, they will all be automatically derived from the url.**
39
+
- `customDatabackendUrl`: Enter the database connection url for the database here. **Note: If you set the `customDatabackendUrl` you do not need to set the type, hostName, port and name, they will all be automatically derived from the url.**
- `depends_on`: This specifies any services that your app will need in order to run. Ensure the name matches the container name for your database
90
90
- `DISABLE_ADDITIONAL_FEATURES`: Set this to `false` to enable security features
91
91
- `SYSTEM_DATASOURCE_ENABLECUSTOMDATABASE`: An environment variable to connect to the database container. Set this to `true` to enable use of the external database
92
-
- `SYSTEM_DATASOURCE_CUSTOMDATABASEURL`: An environment variable to connect to the database container. Set the connection url for the database here. **Note: If you set this url you do not need to set the type, hostName, port and name (namely `SYSTEM_DATASOURCE_TYPE`, `SYSTEM_DATASOURCE_HOSTNAME`, `SYSTEM_DATASOURCE_PORT`, `SYSTEM_DATASOURCE_NAME`), they will all be automatically derived from the url.**
92
+
- `SYSTEM_DATASOURCE_CUSTOMDATABACKENDURL`: An environment variable to connect to the database container. Set the connection url for the database here. **Note: If you set this url you do not need to set the type, hostName, port and name (namely `SYSTEM_DATASOURCE_TYPE`, `SYSTEM_DATASOURCE_HOSTNAME`, `SYSTEM_DATASOURCE_PORT`, `SYSTEM_DATASOURCE_NAME`), they will all be automatically derived from the url.**
93
93
- `SYSTEM_DATASOURCE_USERNAME`: An environment variable to connect to the database container. Set the username for the database. Ensure this matches the corresponding property in your database container
94
94
- `SYSTEM_DATASOURCE_PASSWORD`: An environment variable to connect to the database container. Set the password for the database. Ensure this matches the corresponding property in your database container
0 commit comments