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

Align common_* strings with Element X project in Localazy #11434

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

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

# Consume EX common strings
replace "common.about" "About"
replace "common.analytics" "Analytics"
replace "common.encryption_enabled" "Encryption enabled"
replace "common.error" "Error"
replace "common.forward_message" "Forward message"
replace "common.image" "Image"
replace "common.loading" "Loading…"
replace "common.message" "Message"
replace "common.message_layout" "Message layout"
replace "common.modern" "Modern"
replace "common.mute" "Mute"
replace "common.no_results" "No results"
replace "common.offline" "Offline"
replace "common.password" "Password"
replace "common.people" "People"
replace "common.reactions" "Reactions"
replace "common.report_a_bug" "Report a bug"
replace "common.room_name" "Room name"
replace "common.security" "Security"
replace "common.settings" "Settings"
replace "common.sticker" "Sticker"
replace "common.success" "Success"
replace "common.suggestions" "Suggestions"
replace "common.unmute" "Unmute"
replace "common.username" "Username"
replace "common.verification_cancelled" "Verification cancelled"
replace "common.video" "Video"

prettier --write src/
prettier --write src/i18n/strings/ --ignore-path /dev/null
yarn gen-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 title Align common string with Element X project in Localazy Align common_* strings with Element X project in Localazy Aug 21, 2023
@t3chguy t3chguy changed the base branch from develop to t3chguy/localazy-common-0 August 21, 2023 11:00
…rix-react-sdk into t3chguy/localazy-common-1
@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:11
@t3chguy t3chguy requested review from andybalaam and SimonBrandner and removed request for a team August 21, 2023 11:11
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 disabled auto-merge August 22, 2023 17:47
@t3chguy t3chguy merged commit c40141c into develop Aug 22, 2023
14 of 15 checks passed
@t3chguy t3chguy deleted the t3chguy/localazy-common-1 branch August 22, 2023 17:47
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