Migrate more strings to translation keys (#11579)

This commit is contained in:
Michael Telatynski 2023-09-08 09:58:31 +01:00 committed by GitHub
parent a81393d974
commit 8b9719d46a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
65 changed files with 3334 additions and 2561 deletions

View file

@ -31,8 +31,8 @@ export const CHAT_EFFECTS: Array<Effect<{ [key: string]: any }>> = [
emojis: ["🎊", "🎉"],
msgType: "nic.custom.confetti",
command: "confetti",
description: () => _td("Sends the given message with confetti"),
fallbackMessage: () => _t("sends confetti") + " 🎉",
description: () => _td("chat_effects|confetti_description"),
fallbackMessage: () => _t("chat_effects|confetti_message") + " 🎉",
options: {
maxCount: 150,
speed: 3,
@ -45,8 +45,8 @@ export const CHAT_EFFECTS: Array<Effect<{ [key: string]: any }>> = [
emojis: ["🎆"],
msgType: "nic.custom.fireworks",
command: "fireworks",
description: () => _td("Sends the given message with fireworks"),
fallbackMessage: () => _t("sends fireworks") + " 🎆",
description: () => _td("chat_effects|fireworks_description"),
fallbackMessage: () => _t("chat_effects|fireworks_message") + " 🎆",
options: {
maxCount: 500,
gravity: 0.05,
@ -56,8 +56,8 @@ export const CHAT_EFFECTS: Array<Effect<{ [key: string]: any }>> = [
emojis: ["🌧️", "⛈️", "🌦️"],
msgType: "io.element.effect.rainfall",
command: "rainfall",
description: () => _td("Sends the given message with rainfall"),
fallbackMessage: () => _t("sends rainfall") + " 🌧️",
description: () => _td("chat_effects|rainfall_description"),
fallbackMessage: () => _t("chat_effects|rainfall_message") + " 🌧️",
options: {
maxCount: 600,
speed: 10,
@ -67,8 +67,8 @@ export const CHAT_EFFECTS: Array<Effect<{ [key: string]: any }>> = [
emojis: ["❄", "🌨"],
msgType: "io.element.effect.snowfall",
command: "snowfall",
description: () => _td("Sends the given message with snowfall"),
fallbackMessage: () => _t("sends snowfall") + " ❄",
description: () => _td("chat_effects|snowfall_description"),
fallbackMessage: () => _t("chat_effects|snowfall_message") + " ❄",
options: {
maxCount: 200,
gravity: 0.05,
@ -79,8 +79,8 @@ export const CHAT_EFFECTS: Array<Effect<{ [key: string]: any }>> = [
emojis: ["👾", "🌌"],
msgType: "io.element.effects.space_invaders",
command: "spaceinvaders",
description: () => _td("Sends the given message with a space themed effect"),
fallbackMessage: () => _t("sends space invaders") + " 👾",
description: () => _td("chat_effects|spaceinvaders_description"),
fallbackMessage: () => _t("chat_effects|spaceinvaders_message") + " 👾",
options: {
maxCount: 50,
gravity: 0.01,
@ -90,8 +90,8 @@ export const CHAT_EFFECTS: Array<Effect<{ [key: string]: any }>> = [
emojis: ["💝"],
msgType: "io.element.effect.hearts",
command: "hearts",
description: () => _td("Sends the given message with hearts"),
fallbackMessage: () => _t("sends hearts") + " 💝",
description: () => _td("chat_effects|hearts_description"),
fallbackMessage: () => _t("chat_effects|hearts_message") + " 💝",
options: {
maxCount: 120,
gravity: 3.2,