Migrate more strings to translation keys (#11532)
This commit is contained in:
parent
c853257d54
commit
85be845f16
89 changed files with 5313 additions and 4434 deletions
|
@ -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 {
|
||||
|
|
|
@ -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> }>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue