больше локализации!

This commit is contained in:
Галина Федоренко 2024-11-19 12:03:39 +04:00
parent c1d6ed3a26
commit e031ca847e
6 changed files with 63 additions and 4 deletions

View File

@ -5,5 +5,10 @@
"liked": "liked!",
"disliked": "disliked :(",
"fstname": "First Name: ",
"lstname": "Last Name: ",
"title": "Title: ",
"family": "Family: ",
"arbEnding": "Чтобы не забыть про отсутствие запятой :)"
}

View File

@ -5,5 +5,10 @@
"liked": "Добавлено в понравившиеся :)",
"disliked": "Удалено из понравившегося :(",
"fstname": "Имя: ",
"lstname": "Фамилия: ",
"title": "Титул: ",
"family": "Род: ",
"arbEnding": "Чтобы не забыть про отсутствие запятой :)"
}

View File

@ -113,6 +113,30 @@ abstract class AppLocale {
/// **'Удалено из понравившегося :('**
String get disliked;
/// No description provided for @fstname.
///
/// In ru, this message translates to:
/// **'Имя: '**
String get fstname;
/// No description provided for @lstname.
///
/// In ru, this message translates to:
/// **'Фамилия: '**
String get lstname;
/// No description provided for @title.
///
/// In ru, this message translates to:
/// **'Титул: '**
String get title;
/// No description provided for @family.
///
/// In ru, this message translates to:
/// **'Род: '**
String get family;
/// No description provided for @arbEnding.
///
/// In ru, this message translates to:

View File

@ -15,6 +15,18 @@ class AppLocaleEn extends AppLocale {
@override
String get disliked => 'disliked :(';
@override
String get fstname => 'First Name: ';
@override
String get lstname => 'Last Name: ';
@override
String get title => 'Title: ';
@override
String get family => 'Family: ';
@override
String get arbEnding => 'Чтобы не забыть про отсутствие запятой :)';
}

View File

@ -15,6 +15,18 @@ class AppLocaleRu extends AppLocale {
@override
String get disliked => 'Удалено из понравившегося :(';
@override
String get fstname => 'Имя: ';
@override
String get lstname => 'Фамилия: ';
@override
String get title => 'Титул: ';
@override
String get family => 'Род: ';
@override
String get arbEnding => 'Чтобы не забыть про отсутствие запятой :)';
}

View File

@ -1,5 +1,6 @@
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_app/components/extensions/context_x.dart';
import '../../domain/models/card.dart';
@ -49,22 +50,22 @@ class DetailsPage extends StatelessWidget {
),
const SizedBox(height: 16.0),
Text(
'First Name: ${data.firstName}',
'${context.locale.fstname} ${data.firstName}',
style: Theme.of(context).textTheme.bodyMedium,
),
const SizedBox(height: 8.0),
Text(
'Last Name: ${data.lastName}',
'${context.locale.lstname} ${data.lastName}',
style: Theme.of(context).textTheme.bodyMedium,
),
const SizedBox(height: 8.0),
Text(
'Title: ${data.title}',
'${context.locale.title} ${data.title}',
style: Theme.of(context).textTheme.bodyMedium,
),
const SizedBox(height: 8.0),
Text(
'Family: ${data.family}',
'${context.locale.family} ${data.family}',
style: Theme.of(context).textTheme.bodyMedium,
),
const SizedBox(height: 8.0),