opt.: l10n & fix: write script (#514)

This commit is contained in:
lollipopkit🏳️‍⚧️
2024-08-03 22:44:21 +08:00
committed by GitHub
parent 610f46da0d
commit 9db04a60c2
55 changed files with 686 additions and 2201 deletions

View File

@@ -92,7 +92,7 @@ final class _IntroPage extends StatelessWidget {
final selected = await ctx.showPickSingleDialog(
title: l10n.language,
items: AppLocalizations.supportedLocales,
name: (p0) => '${p0.nativeDisplayLanguage} (${p0.code})',
name: (p0) => p0.nativeName,
initial: _setting.locale.fetch().toLocale,
);
if (selected != null) {
@@ -101,7 +101,7 @@ final class _IntroPage extends StatelessWidget {
}
},
trailing: Text(
l10n.languageName,
ctx.localeNativeName,
style: const TextStyle(fontSize: 15, color: Colors.grey),
),
).cardx,