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

Align a11y_* strings with Element X project in Localazy #11435

Merged
merged 4 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

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\"\)" {} \;
}

# Consume EX a11y strings
replace "a11y.user_menu" "User menu"

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
@t3chguy t3chguy changed the base branch from develop to t3chguy/localazy-common-0 August 21, 2023 11:00
@t3chguy t3chguy self-assigned this Aug 21, 2023
@t3chguy t3chguy marked this pull request as ready for review August 21, 2023 11:11
@t3chguy t3chguy requested a review from a team as a code owner August 21, 2023 11:12
@t3chguy t3chguy requested review from germain-gg and dbkr 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
@t3chguy t3chguy added this pull request to the merge queue Aug 22, 2023
@germain-gg germain-gg removed their request for review August 22, 2023 16:38
Merged via the queue into develop with commit 1a49a38 Aug 22, 2023
19 checks passed
@t3chguy t3chguy deleted the t3chguy/localazy-common-2 branch August 22, 2023 17:22
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