Add localizations
This commit is contained in:
parent
1f230c0a63
commit
a776ac1513
28 changed files with 3406 additions and 249 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import 'package:famedlysdk/famedlysdk.dart';
|
||||
import 'package:fluffychat/i18n/i18n.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
extension LocalizedRoomDisplayname on Room {
|
||||
|
|
@ -7,7 +8,7 @@ extension LocalizedRoomDisplayname on Room {
|
|||
(this.canonicalAlias?.isEmpty ?? true) &&
|
||||
!this.isDirectChat &&
|
||||
this.mHeroes.isNotEmpty) {
|
||||
return "Group with ${this.displayname}";
|
||||
return I18n.of(context).groupWith(this.displayname);
|
||||
}
|
||||
return this.displayname;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue