feature/internationale #46

Merged
v4l3n71n merged 38 commits from feature/internationale into main 2025-08-06 20:38:37 +00:00
24 changed files with 1183 additions and 311 deletions
Showing only changes of commit 0a62011b3a - Show all commits

View File

@@ -183,8 +183,13 @@ class _MyHomePageState extends State<ListItemOrganizers> {
final post = posts[index];
final startDate = DateTime.parse(post.startDate!);
final locale = Provider.of<LocaleProvider>(context, listen: false)
.locale
?.toString() ??
'en_US';
final dateLongue =
DateFormat('EEEE d MMMM y', 'fr_FR').format(startDate);
DateFormat('EEEE d MMMM y', locale).format(startDate);
return ListTile(
title: Text('${post.name!}'),

View File

@@ -184,8 +184,12 @@ class _MyHomePageState extends State<ListItemTags> {
itemBuilder: (context, index) {
final post = posts[index];
final startDate = DateTime.parse(post.startDate!);
final locale = Provider.of<LocaleProvider>(context, listen: false)
.locale
?.toString() ??
'en_US';
final dateLongue =
DateFormat('EEEE d MMMM y', 'fr_FR').format(startDate);
DateFormat('EEEE d MMMM y', locale).format(startDate);
return ListTile(
title: Text('${post.name!}'),