Skip to content

Commit cafae31

Browse files
committed
Add docs for defaultCountryCode
1 parent 1459bfe commit cafae31

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,9 @@ For a good example, see https://riot.im/develop/config.json.
181181
1. `homeUrl`: Content shown on the inside of the app when a specific room is
182182
not selected. By default, no home page is configured. If one is set, a
183183
button to access it will be shown in the top left menu.
184+
1. `defaultCountryCode`: The ISO 3166 alpha2 country code to use when showing
185+
country selectors, like the phone number input on the registration page.
186+
Defaults to `GB` if the given code is unknown or not provided.
184187

185188

186189
Note that `index.html` also has an og:image meta tag that is set to an image

config.sample.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"integrations_rest_url": "https://scalar.vector.im/api",
1919
"integrations_jitsi_widget_url": "https://scalar.vector.im/api/widgets/jitsi.html",
2020
"bug_report_endpoint_url": "https://riot.im/bugreports/submit",
21+
"defaultCountryCode": "GB",
2122
"showLabsSettings": false,
2223
"features": {
2324
"feature_groups": "labs",

0 commit comments

Comments
 (0)