mirror of
https://github.com/wekan/wekan.git
synced 2025-12-18 00:10:13 +01:00
Created Change Language (markdown)
parent
342fe4c145
commit
7fe032fd9e
1 changed files with 29 additions and 0 deletions
29
Change-Language.md
Normal file
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
|
||||||
|
}
|
||||||
|
```
|
||||||
Loading…
Add table
Add a link
Reference in a new issue