Migrate action, common, a11y translation keys

```
move () {
  FROM=$1 TO=$2 find public/locales -type f -exec sh -c 'jq ".$TO = .\"$FROM\" | del(.\"$FROM\") | del(..|nulls) | select(length > 0)" {} | sponge {}' \;
}

move "Avatar" "common.avatar"
move "Camera" "common.camera"
move "Close" "action.close"
move "Copied!" "common.copied"
move "Copy" "action.copy"
move "Copy link" "action.copy_link"
move "Encrypted" "common.encrypted"
move "Go" "action.go"
move "Home" "common.home"
move "Invite" "action.invite"
move "Loading…" "common.loading"
move "Microphone" "common.microphone"
move "No" "action.no"
move "Not encrypted" "common.unencrypted"
move "Password" "common.password"
move "Profile" "common.profile"
move "Username" "common.username"
move "Video" "common.video"
move "Register" "action.register"
move "Remove" "action.remove"
move "Settings" "common.settings"
move "Sign in" "action.sign_in"
move "Sign out" "action.sign_out"
move "Submit" "action.submit"
move "User menu" "a11y.user_menu"
move "Audio" "common.audio"
move "Display name" "common.display_name"
```
This commit is contained in:
Michael Telatynski
2023-11-20 11:05:18 +00:00
parent 85250e6ea3
commit 71664f5f8e
47 changed files with 718 additions and 584 deletions

View File

@@ -25,7 +25,7 @@ import { usePageTitle } from "../usePageTitle";
export const HomePage: FC = () => {
const { t } = useTranslation();
usePageTitle(t("Home"));
usePageTitle(t("common.home"));
const clientState = useClientState();

View File

@@ -40,7 +40,7 @@ export const JoinExistingCallModal: FC<Props> = ({
<Modal title={t("Join existing call?")} open={open} onDismiss={onDismiss}>
<p>{t("This call already exists, would you like to join?")}</p>
<FieldRow rightAlign className={styles.buttons}>
<Button onPress={onDismiss}>{t("No")}</Button>
<Button onPress={onDismiss}>{t("action.no")}</Button>
<Button onPress={onJoin} data-testid="home_joinExistingRoom">
{t("Yes, join call")}
</Button>

View File

@@ -147,7 +147,7 @@ export const RegisteredView: FC<Props> = ({ client }) => {
disabled={loading}
data-testid="home_go"
>
{loading ? t("Loading") : t("Go")}
{loading ? t("common.loading") : t("action.go")}
</Button>
</FieldRow>
{optInAnalytics === null && (

View File

@@ -177,8 +177,8 @@ export const UnauthenticatedView: FC = () => {
<InputField
id="displayName"
name="displayName"
label={t("Display name")}
placeholder={t("Display name")}
label={t("common.display_name")}
placeholder={t("common.display_name")}
type="text"
required
data-testid="home_displayName"
@@ -209,7 +209,7 @@ export const UnauthenticatedView: FC = () => {
disabled={loading}
data-testid="home_go"
>
{loading ? t("Loading") : t("Go")}
{loading ? t("common.loading") : t("action.go")}
</Button>
<div id={recaptchaId} />
</Form>