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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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> }>;