element-desktop: try to fix localization issues

I know that the en_EN.json vs. en-us.json is a nasty hack, but I don't
really understand where this `en-us.json` is supposed to be coming from.
This commit is contained in:
Maximilian Bosch 2021-07-23 19:07:52 +02:00
parent 07620c8697
commit b856b19540
No known key found for this signature in database
GPG Key ID: 091DBF4D1FC46B8E

View File

@ -29,6 +29,8 @@ in mkYarnPackage rec {
export HOME=$(mktemp -d)
pushd deps/element-desktop/
npx tsc
yarn run i18n
node ./scripts/copy-res.js
popd
runHook postBuild
'';
@ -41,6 +43,7 @@ in mkYarnPackage rec {
cp -r './deps/element-desktop/res/img' "$out/share/element"
rm "$out/share/element/electron/node_modules"
cp -r './node_modules' "$out/share/element/electron"
cp $out/share/element/electron/lib/i18n/strings/en_EN.json $out/share/element/electron/lib/i18n/strings/en-us.json
# icons
for icon in $out/share/element/electron/build/icons/*.png; do