feature(registration): remove .env

This commit is contained in:
mso7nueh
2024-07-15 17:06:13 +03:00
parent 726b74a236
commit d859a15cfd
188 changed files with 2509 additions and 3147 deletions

View File

@@ -1,9 +1,9 @@
import 'package:eatvio_app/app_router.dart';
import 'ru/ru_translations.dart';
import 'package:flutter/cupertino.dart';
//import 'en_us/en_us_translations.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/cupertino.dart';
import 'ru/ru_translations.dart';
class AppLocalization {
AppLocalization(this.locale);
@@ -23,24 +23,24 @@ class AppLocalization {
return Localizations.of<AppLocalization>(context, AppLocalization)!;
} else {
// Обработка ситуации, когда context равен null
return AppLocalization(Locale(
'ru',
'',
),); // Возвращаем дефолтное значение или обработку ошибки
return AppLocalization(
Locale(
'ru',
'',
),
); // Возвращаем дефолтное значение или обработку ошибки
}
}
static List<String> languages() => _localizedValues.keys.toList();
String getString(String text) =>
_localizedValues[locale.languageCode]![text] ?? text;
String getString(String text) => _localizedValues[locale.languageCode]![text] ?? text;
}
class AppLocalizationDelegate extends LocalizationsDelegate<AppLocalization> {
const AppLocalizationDelegate();
@override
bool isSupported(Locale locale) =>
AppLocalization.languages().contains(locale.languageCode);
bool isSupported(Locale locale) => AppLocalization.languages().contains(locale.languageCode);
//Returning a SynchronousFuture here because an async "load" operation
//cause an async "load" operation

View File

@@ -27,8 +27,7 @@ final Map<String, String> enUs = {
// blood_pressure Screen
"no": "No",
"do_you_have_hypertension_tendency":
"Do you have a tendency for hypertension?",
"do_you_have_hypertension_tendency": "Do you have a tendency for hypertension?",
"your_blood_pressure": "Your blood pressure?",
"average_pressure": "Average pressure:",
"do_you_have_hypotension_tendency": "Do you have a tendency for hypotension?",
@@ -43,13 +42,11 @@ final Map<String, String> enUs = {
// schedule Screen
"your_schedule": "Your Daily Schedule?",
"tell_your_schedule":
"Tell us about your daily routine, when you wake up, eat, and go to sleep:",
"tell_your_schedule": "Tell us about your daily routine, when you wake up, eat, and go to sleep:",
// additional_information Screen
"additional_information": "Additional Information:",
"enter_additional_information":
"Enter any additional information you would like to share:",
"enter_additional_information": "Enter any additional information you would like to share:",
// language_select Screen
"lbl_english": "English",

View File

@@ -57,13 +57,11 @@ final Map<String, String> ru = {
// schedule Screen
"your_schedule": "Ваш режим дня?",
"tell_your_schedule":
"Расскажите в свободной форме о том как просыпаетесь, когда едите, когда ложитесь спать:",
"tell_your_schedule": "Расскажите в свободной форме о том как просыпаетесь, когда едите, когда ложитесь спать:",
// additional_information Screen
"additional_information": "Дополнительная информация",
"enter_additional_information":
"Введите любую дополнительную информацию на своё усмотрение:",
"enter_additional_information": "Введите любую дополнительную информацию на своё усмотрение:",
// language_select Screen
"lbl_english": "English",