Skip to content

Commit

Permalink
Merge pull request #2869 from Bilb/feature/ses-476/remove-profile-pic…
Browse files Browse the repository at this point in the history
…ture

Feature/ses 476/remove profile picture
  • Loading branch information
Bilb committed Aug 28, 2023
2 parents 1547667 + 95ac149 commit 70b2204
Show file tree
Hide file tree
Showing 10 changed files with 924 additions and 757 deletions.
3 changes: 2 additions & 1 deletion _locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -509,5 +509,6 @@
"reactionPopupThree": "$name$, $name2$ & $name3$",
"reactionPopupMany": "$name$, $name2$, $name3$ &",
"reactionListCountSingular": "And $otherSingular$ has reacted <span>$emoji$</span> to this message",
"reactionListCountPlural": "And $otherPlural$ have reacted <span>$emoji$</span> to this message"
"reactionListCountPlural": "And $otherPlural$ have reacted <span>$emoji$</span> to this message",
"setDisplayPicture": "Set Display Picture"
}
7 changes: 4 additions & 3 deletions tools/updateI18nKeysType.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from glob import glob
import json
import sys
from collections import OrderedDict

LOCALES_FOLDER = './_locales'

Expand All @@ -16,10 +17,10 @@
stringToWrite = "export type LocalizerKeys =\n | "

with open(EN_FILE,'r') as jsonFile:
data = json.load(jsonFile)
keys = data.keys()
data = json.loads(jsonFile.read(), object_pairs_hook=OrderedDict)
keys = sorted(list(data.keys()))

stringToWrite += json.dumps(list(keys), sort_keys=True).replace(',', '\n |').replace('"', '\'')[1:-1]
stringToWrite += json.dumps(keys, sort_keys=True).replace(',', '\n |').replace('"', '\'')[1:-1]


stringToWrite += ';\n'
Expand Down
Loading

0 comments on commit 70b2204

Please sign in to comment.