Migrate more strings to translation keys (#11694)
This commit is contained in:
parent
677854d318
commit
e1cfde0c6e
201 changed files with 21074 additions and 18552 deletions
|
@ -117,7 +117,7 @@ export const EventEditor: React.FC<IEventEditorProps> = ({ fieldDefs, defaultCon
|
|||
};
|
||||
|
||||
return (
|
||||
<BaseTool actionLabel={_t("Send")} onAction={onAction} onBack={onBack}>
|
||||
<BaseTool actionLabel={_t("forward|send_label")} onAction={onAction} onBack={onBack}>
|
||||
<div className="mx_DevTools_eventTypeStateKeyGroup">{fields}</div>
|
||||
|
||||
<Field
|
||||
|
|
|
@ -59,7 +59,7 @@ const FilteredList: React.FC<IProps> = ({ children, query, onChange }) => {
|
|||
|
||||
return (
|
||||
<button className="mx_DevTools_button" onClick={showMore}>
|
||||
{_t("and %(count)s others...", { count: overflowCount })}
|
||||
{_t("common|and_n_others", { count: overflowCount })}
|
||||
</button>
|
||||
);
|
||||
};
|
||||
|
@ -67,7 +67,7 @@ const FilteredList: React.FC<IProps> = ({ children, query, onChange }) => {
|
|||
return (
|
||||
<>
|
||||
<Field
|
||||
label={_t("Filter results")}
|
||||
label={_t("common|filter_results")}
|
||||
autoFocus={true}
|
||||
size={64}
|
||||
type="text"
|
||||
|
@ -80,7 +80,7 @@ const FilteredList: React.FC<IProps> = ({ children, query, onChange }) => {
|
|||
/>
|
||||
|
||||
{filteredChildren.length < 1 ? (
|
||||
_t("No results found")
|
||||
_t("common|no_results_found")
|
||||
) : (
|
||||
<TruncatedList
|
||||
getChildren={getChildren}
|
||||
|
|
|
@ -277,7 +277,7 @@ const SettingsList: React.FC<ISettingsListProps> = ({ onBack, onView, onEdit })
|
|||
return (
|
||||
<BaseTool onBack={onBack} className="mx_DevTools_SettingsExplorer">
|
||||
<Field
|
||||
label={_t("Filter results")}
|
||||
label={_t("common|filter_results")}
|
||||
autoFocus={true}
|
||||
size={64}
|
||||
type="text"
|
||||
|
|
|
@ -27,7 +27,7 @@ import BaseTool, { DevtoolsContext, IDevtoolsProps } from "./BaseTool";
|
|||
import { Tool } from "../DevtoolsDialog";
|
||||
|
||||
const PHASE_MAP: Record<Phase, TranslationKey> = {
|
||||
[Phase.Unsent]: _td("Unsent"),
|
||||
[Phase.Unsent]: _td("common|unsent"),
|
||||
[Phase.Requested]: _td("devtools|phase_requested"),
|
||||
[Phase.Ready]: _td("devtools|phase_ready"),
|
||||
[Phase.Done]: _td("action|done"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue