Created Change Language (markdown)

Lauri Ojansivu 2024-04-05 15:32:45 +03:00
parent 342fe4c145
commit 7fe032fd9e

29
Change-Language.md Normal file

@ -0,0 +1,29 @@
## Change language for all users
Using MongoDB Shell with WeKan Snap Candidate, to change English date format to `DD/MM/YY`.
MongoDB Shell Download: https://www.mongodb.com/try/download/shell
language.sh:
```
mongosh --quiet \
--host 127.0.0.1 \
--port 27019 \
--eval 'use wekan' \
--eval 'db.users.updateMany({}, { $set: {"profile.language": "en-GB" }});'
```
Set script as executeable:
```
chmod +x language.sh
```
Running script:
```
$ ./language.sh
{
acknowledged: true,
insertedId: null,
matchedCount: 20,
modifiedCount: 0,
upsertedCount: 0
}
```