feat(legal): update legal documents and add zh_Hant support
This commit is contained in:
@@ -12,7 +12,11 @@ IconData legalDocumentIcon(LegalDocumentType type) {
|
||||
}
|
||||
|
||||
String legalDocumentAssetPath(Locale locale, LegalDocumentType type) {
|
||||
final localeFolder = locale.languageCode == 'en' ? 'en' : 'zh';
|
||||
final localeFolder = switch (locale.toString()) {
|
||||
'en' => 'en',
|
||||
'zh_Hant' => 'zh_Hant',
|
||||
_ => 'zh',
|
||||
};
|
||||
final fileName = switch (type) {
|
||||
LegalDocumentType.aboutUs => 'about_us.md',
|
||||
LegalDocumentType.privacyPolicy => 'privacy_policy.md',
|
||||
|
||||
Reference in New Issue
Block a user