Skip to content

Commit

Permalink
pad: Use null as default for lang option
Browse files Browse the repository at this point in the history
It doesn't make sense to override the browser's language with `en-gb`
by default.

Note that this change has no effect due to a bug in how pad options
are processed; that bug will be fixed in a future commit.
  • Loading branch information
rhansen committed Dec 5, 2021
1 parent 7ff71cd commit 61b608e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion doc/docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ If your database needs additional settings, you will have to use a personalized
| `PAD_OPTIONS_RTL` | | `false` |
| `PAD_OPTIONS_ALWAYS_SHOW_CHAT` | | `false` |
| `PAD_OPTIONS_CHAT_AND_USERS` | | `false` |
| `PAD_OPTIONS_LANG` | | `en-gb` |
| `PAD_OPTIONS_LANG` | | `null` |


### Shortcuts
Expand Down
2 changes: 1 addition & 1 deletion settings.json.docker
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@
"rtl": "${PAD_OPTIONS_RTL:false}",
"alwaysShowChat": "${PAD_OPTIONS_ALWAYS_SHOW_CHAT:false}",
"chatAndUsers": "${PAD_OPTIONS_CHAT_AND_USERS:false}",
"lang": "${PAD_OPTIONS_LANG:en-gb}"
"lang": "${PAD_OPTIONS_LANG:null}"
},

/*
Expand Down
2 changes: 1 addition & 1 deletion settings.json.template
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@
"rtl": false,
"alwaysShowChat": false,
"chatAndUsers": false,
"lang": "en-gb"
"lang": null
},

/*
Expand Down
2 changes: 1 addition & 1 deletion src/node/utils/Settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ exports.padOptions = {
rtl: false,
alwaysShowChat: false,
chatAndUsers: false,
lang: 'en-gb',
lang: null,
};

/**
Expand Down

0 comments on commit 61b608e

Please sign in to comment.