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

Align action_* strings with Element X project in Localazy #11437

Merged
merged 9 commits into from
Aug 22, 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.continue" "Continue"
replace "action.copy" "Copy"
replace "action.copy_link" "Copy link"
replace "action.create" "Create"
replace "action.create_a_room" "Create a room"
replace "action.decline" "Decline"
replace "action.disable" "Disable"
replace "action.done" "Done"
replace "action.edit" "Edit"
replace "action.enable" "Enable"
replace "action.forgot_password" "Forgot password?"
replace "action.forward" "Forward"
replace "action.invite" "Invite"
replace "action.invites_list" "Invites"
replace "action.learn_more" "Learn more"
replace "action.leave" "Leave"
replace "action.leave_room" "Leave room"
replace "action.next" "Next"
replace "action.no" "No"
replace "action.ok" "OK"
replace "action.quote" "Quote"
replace "action.react" "React"
replace "action.remove" "Remove"
replace "action.reply" "Reply"
replace "action.report_content" "Report Content"
replace "action.retry" "Retry"
replace "action.save" "Save"
replace "action.start" "Start"
replace "action.start_chat" "Start chat"
replace "action.view_source" "View Source"
replace "action.yes" "Yes"

prettier --log-level silent --write src/
prettier --log-level 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
…rix-react-sdk into t3chguy/localazy-common-3
@t3chguy t3chguy changed the base branch from develop to t3chguy/localazy-common-0 August 21, 2023 10:59
@t3chguy t3chguy self-assigned this Aug 21, 2023
@t3chguy t3chguy marked this pull request as ready for review August 21, 2023 11:12
@t3chguy t3chguy requested a review from a team as a code owner August 21, 2023 11:12
@t3chguy t3chguy requested review from richvdh and florianduros and removed request for a team August 21, 2023 11:12
Base automatically changed from t3chguy/localazy-common-0 to develop August 21, 2023 12:12
@cypress cypress bot requested a review from a team as a code owner August 21, 2023 12:12
@cypress cypress bot requested a review from andybalaam August 21, 2023 12:12
Copy link
Member

@richvdh richvdh left a comment

Choose a reason for hiding this comment

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

seems plausible

… t3chguy/localazy-common-3

# Conflicts:
#	src/components/views/dialogs/ModuleUiDialog.tsx
… t3chguy/localazy-common-3

# Conflicts:
#	src/components/views/settings/account/EmailAddresses.tsx
#	src/components/views/settings/account/PhoneNumbers.tsx
@t3chguy t3chguy disabled auto-merge August 22, 2023 19:55
@t3chguy t3chguy merged commit df4a221 into develop Aug 22, 2023
@t3chguy t3chguy deleted the t3chguy/localazy-common-3 branch August 22, 2023 19:55
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