feat(legal): update legal documents and add zh_Hant support

This commit is contained in:
qzl
2026-04-25 14:14:49 +08:00
parent 2d46251220
commit 08db431653
13 changed files with 1590 additions and 196 deletions
@@ -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',