Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Create more common_* common strings #11439

Merged
merged 2 commits into from
Aug 23, 2023
Merged

Conversation

t3chguy
Copy link
Member

@t3chguy t3chguy commented Aug 21, 2023

Requires #11436
For element-hq/element-web#25608
Subset of #11420

Performed using

set -e

replace () {
    K="${1/./|}"
    find src/i18n/strings -type f -exec sh -c "jq '.$1 = .\"$2\" | del(.\"$2\") | del(..|nulls) | del(..|select(. == { }))' {} | sponge {}" \;
    find src -type f -exec gsed -i -E "s/(_td?)\(\"$2\"\)/\1(\"$K\")/gm;t" {} \;
}

replace "common.attachment" "Attachment"
replace "common.light" "Light"
replace "common.dark" "Dark"
replace "common.warning" "Warning"
replace "common.home" "Home"
replace "common.favourites" "Favourites"
replace "common.thread" "Thread"
replace "common.threads" "Threads"
replace "common.user" "User"
replace "common.room" "Room"
replace "common.theme" "Theme"
replace "common.name" "Name"
replace "common.description" "Description"
replace "common.public" "Public"
replace "common.private" "Private"
replace "common.options" "Options"
replace "common.appearance" "Appearance"
replace "common.homeserver" "Homeserver"
replace "common.help" "Help"
replace "common.beta" "Beta"
replace "common.labs" "Labs"

prettier --loglevel silent --write src/
prettier --loglevel silent --write src/i18n/strings/ --ignore-path /dev/null
yarn i18n

This change is marked as an internal change (Task), so will not be included in the changelog.

@t3chguy t3chguy added the T-Task Refactoring, enabling or disabling functionality, other engineering tasks label Aug 21, 2023
@t3chguy t3chguy self-assigned this Aug 21, 2023
@t3chguy t3chguy changed the title Update matrix-web-i18n Create more common_* common strings Aug 21, 2023
Base automatically changed from t3chguy/localazy-common-0 to develop August 21, 2023 12:12
@t3chguy t3chguy marked this pull request as ready for review August 21, 2023 16:26
@t3chguy t3chguy requested review from a team as code owners August 21, 2023 16:26
@t3chguy t3chguy added the X-Blocked The PR cannot move forward in any capacity until an action is made label Aug 21, 2023
Copy link
Contributor

@florianduros florianduros left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks sane

@t3chguy t3chguy removed the X-Blocked The PR cannot move forward in any capacity until an action is made label Aug 22, 2023
@t3chguy t3chguy enabled auto-merge August 23, 2023 08:55
@t3chguy t3chguy disabled auto-merge August 23, 2023 09:25
@t3chguy t3chguy merged commit aa6e365 into develop Aug 23, 2023
18 of 19 checks passed
@t3chguy t3chguy deleted the t3chguy/localazy-common-5 branch August 23, 2023 09:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
T-Task Refactoring, enabling or disabling functionality, other engineering tasks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants