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

Create more action_* common strings #11438

Merged
merged 12 commits into from
Aug 23, 2023
Merged

Create more action_* common strings #11438

merged 12 commits into from
Aug 23, 2023

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" {} \;
#    find src -type f -exec grep -E "(_td?)\(\"$2\"\)" {} \;
}

replace "action.reject" "Reject"
replace "action.confirm" "Confirm"
replace "action.dismiss" "Dismiss"
replace "action.trust" "Trust"
replace "action.reload" "Reload"
replace "action.cancel" "Cancel"
replace "action.stop" "Stop"
replace "action.join" "Join"
replace "action.close" "Close"
replace "action.accept" "Accept"
replace "action.upgrade" "Upgrade"
replace "action.verify" "Verify"
replace "action.update" "Update"
replace "action.call" "Call"
replace "action.delete" "Delete"
replace "action.upload" "Upload"
replace "action.collapse" "Collapse"
replace "action.apply" "Apply"
replace "action.reset" "Reset"
replace "action.share" "Share"
replace "action.skip" "Skip"
replace "action.logout" "Logout"
replace "action.enable" "Enable"
replace "action.view" "View"

replace "action.expand" "Expand"

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
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 12:50
@t3chguy t3chguy requested review from a team as code owners August 21, 2023 12:50
@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

@germain-gg germain-gg left a comment

Choose a reason for hiding this comment

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

Looks good to me from what I've seen 👍

@t3chguy t3chguy disabled auto-merge August 23, 2023 09:42
@t3chguy t3chguy merged commit d5cacff into develop Aug 23, 2023
18 of 19 checks passed
@t3chguy t3chguy deleted the t3chguy/localazy-common-4 branch August 23, 2023 10:57
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