feat: Add translations

This commit is contained in:
SleeplessOne1917 2023-09-26 13:10:57 -04:00
parent 3e52203162
commit 7847eb22bf
2 changed files with 3 additions and 4 deletions

@ -1 +1 @@
Subproject commit de9de2c53bee034d3824ecaa9a2104f8f341332e Subproject commit 18da10858d8c63750beb06247947f25d91944741

View file

@ -507,10 +507,9 @@ export class Settings extends Component<any, SettingsState> {
} }
blockedInstancesList() { blockedInstancesList() {
// TODO: Make translations
return ( return (
<> <>
<h2 className="h5">{I18NextService.i18n.t("blocked_users")}</h2> <h2 className="h5">{I18NextService.i18n.t("blocked_instances")}</h2>
<ul className="list-unstyled mb-0"> <ul className="list-unstyled mb-0">
{this.state.instanceBlocks.map(ib => ( {this.state.instanceBlocks.map(ib => (
<li key={ib.instance.id}> <li key={ib.instance.id}>
@ -522,7 +521,7 @@ export class Settings extends Component<any, SettingsState> {
{ ctx: this, instanceId: ib.instance.id }, { ctx: this, instanceId: ib.instance.id },
this.handleUnblockInstance, this.handleUnblockInstance,
)} )}
data-tippy-content={I18NextService.i18n.t("unblock_user")} data-tippy-content={I18NextService.i18n.t("unblock_instance")}
> >
<Icon icon="x" classes="icon-inline" /> <Icon icon="x" classes="icon-inline" />
</button> </button>