1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-08-07 21:23:00 +03:00

Migrate more strings to translation keys (#11532)

This commit is contained in:
Michael Telatynski
2023-09-05 17:52:06 +01:00
committed by GitHub
parent c853257d54
commit 85be845f16
89 changed files with 5313 additions and 4434 deletions

View File

@@ -107,7 +107,7 @@ export class Command {
}
public getUsage(): string {
return _t("Usage") + ": " + this.getCommandWithArgs();
return _t("slash_command|usage") + ": " + this.getCommandWithArgs();
}
public isEnabled(cli: MatrixClient | null): boolean {

View File

@@ -23,12 +23,12 @@ import { _td } from "../languageHandler";
import { XOR } from "../@types/common";
export const CommandCategories = {
messages: _td("Messages"),
actions: _td("Actions"),
admin: _td("Admin"),
advanced: _td("Advanced"),
effects: _td("Effects"),
other: _td("Other"),
messages: _td("slash_command|category_messages"),
actions: _td("slash_command|category_actions"),
admin: _td("slash_command|category_admin"),
advanced: _td("slash_command|category_advanced"),
effects: _td("slash_command|category_effects"),
other: _td("slash_command|category_other"),
};
export type RunResult = XOR<{ error: Error }, { promise: Promise<IContent | undefined> }>;