Migrate more strings to translation keys (#11522)

This commit is contained in:
Michael Telatynski 2023-09-04 19:41:39 +01:00 committed by GitHub
parent e650397bac
commit bf68e4afb6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
69 changed files with 4870 additions and 3876 deletions

View file

@ -1240,10 +1240,10 @@ export default class MatrixChat extends React.PureComponent<IProps, IState> {
<span>
{isSpace
? _t("Are you sure you want to leave the space '%(spaceName)s'?", {
spaceName: roomToLeave?.name ?? _t("Unnamed Space"),
spaceName: roomToLeave?.name ?? _t("common|unnamed_space"),
})
: _t("Are you sure you want to leave the room '%(roomName)s'?", {
roomName: roomToLeave?.name ?? _t("Unnamed Room"),
roomName: roomToLeave?.name ?? _t("common|unnamed_room"),
})}
{warnings}
</span>

View file

@ -119,7 +119,7 @@ const Tile: React.FC<ITileProps> = ({
room.name ||
room.canonical_alias ||
room.aliases?.[0] ||
(room.room_type === RoomType.Space ? _t("Unnamed Space") : _t("Unnamed Room"));
(room.room_type === RoomType.Space ? _t("common|unnamed_space") : _t("common|unnamed_room"));
const [showChildren, toggleShowChildren] = useStateToggle(true);
const [onFocus, isActive, ref] = useRovingTabIndex();