Skip to content

Commit

Permalink
[3.2.3] New formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
Carapacik committed Feb 15, 2025
1 parent caf0777 commit 39b8a12
Show file tree
Hide file tree
Showing 61 changed files with 1,115 additions and 1,568 deletions.
2 changes: 1 addition & 1 deletion .fvmrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"flutter": "3.27.4"
"flutter": "3.29.0"
}
11 changes: 2 additions & 9 deletions lib/src/core/assets/generated/assets.gen.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import 'messages_en.dart' as messages_en;
import 'messages_ru.dart' as messages_ru;

typedef Future<dynamic> LibraryLoader();

Map<String, LibraryLoader> _deferredLibraries = {
'en': () => new SynchronousFuture(null),
'ru': () => new SynchronousFuture(null),
Expand Down Expand Up @@ -62,11 +63,7 @@ bool _messagesExistFor(String locale) {
}

MessageLookupByLibrary? _findGeneratedMessagesFor(String locale) {
var actualLocale = Intl.verifiedLocale(
locale,
_messagesExistFor,
onFailure: (_) => null,
);
var actualLocale = Intl.verifiedLocale(locale, _messagesExistFor, onFailure: (_) => null);
if (actualLocale == null) return null;
return _findExact(actualLocale);
}
43 changes: 12 additions & 31 deletions lib/src/core/constant/localization/generated/intl/messages_en.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,24 +20,21 @@ typedef String MessageIfAbsent(String messageStr, List<dynamic> args);
class MessageLookup extends MessageLookupByLibrary {
String get localeName => 'en';

static String m0(attemptNumber) =>
"I couldn\'t guess the word in ${attemptNumber} attempts.";
static String m0(attemptNumber) => "I couldn\'t guess the word in ${attemptNumber} attempts.";

static String m1(attemptNumber) =>
"The word is solved in ${attemptNumber}/6 attempts.";
static String m1(attemptNumber) => "The word is solved in ${attemptNumber}/6 attempts.";

static String m2(number) => "Level ${number}";

final messages = _notInlinedMessages(_notInlinedMessages);

static Map<String, Function> _notInlinedMessages(_) => <String, Function>{
"about": MessageLookupByLibrary.simpleMessage("About"),
"appDictionary": MessageLookupByLibrary.simpleMessage("App dictionary"),
"appLanguage": MessageLookupByLibrary.simpleMessage("App language"),
"appTitle": MessageLookupByLibrary.simpleMessage("Wordly Plus"),
"casual": MessageLookupByLibrary.simpleMessage("Default"),
"checkResult": MessageLookupByLibrary.simpleMessage(
"You can check your result here:",
),
"checkResult": MessageLookupByLibrary.simpleMessage("You can check your result here:"),
"checkResultLose": m0,
"checkResultWin": m1,
"colorMode": MessageLookupByLibrary.simpleMessage("Color mode"),
Expand All @@ -48,22 +45,16 @@ class MessageLookup extends MessageLookupByLibrary {
"daily": MessageLookupByLibrary.simpleMessage("Daily"),
"en": MessageLookupByLibrary.simpleMessage("English"),
"examples": MessageLookupByLibrary.simpleMessage("Examples"),
"guessDistribution": MessageLookupByLibrary.simpleMessage(
"Guess distribution",
),
"guessDistribution": MessageLookupByLibrary.simpleMessage("Guess distribution"),
"highContrast": MessageLookupByLibrary.simpleMessage("High contrast"),
"levelNumber": m2,
"levels": MessageLookupByLibrary.simpleMessage("Levels"),
"loseMessage": MessageLookupByLibrary.simpleMessage("You lost"),
"maxStreak": MessageLookupByLibrary.simpleMessage("Max\nStreak"),
"newWordAvailableEachDay": MessageLookupByLibrary.simpleMessage(
"A new word will be available each day!",
),
"newWordAvailableEachDay": MessageLookupByLibrary.simpleMessage("A new word will be available each day!"),
"nextLevel": MessageLookupByLibrary.simpleMessage("Next level"),
"nextWord": MessageLookupByLibrary.simpleMessage("Next word in"),
"notPlayed": MessageLookupByLibrary.simpleMessage(
"You haven\'t played a single game",
),
"notPlayed": MessageLookupByLibrary.simpleMessage("You haven\'t played a single game"),
"other": MessageLookupByLibrary.simpleMessage("Other"),
"played": MessageLookupByLibrary.simpleMessage("Played"),
"ru": MessageLookupByLibrary.simpleMessage("Russian"),
Expand All @@ -86,27 +77,17 @@ class MessageLookup extends MessageLookupByLibrary {
"tutorialDescription2": MessageLookupByLibrary.simpleMessage(
"After each guess, the color of the tiles will change to show how close your guess was to the word.",
),
"tutorialNotInWordSpot": MessageLookupByLibrary.simpleMessage(
"The letter E is not in the word in any spot.",
),
"tutorialTitle": MessageLookupByLibrary.simpleMessage(
"Guess the WORD in 6 tries.",
),
"tutorialNotInWordSpot": MessageLookupByLibrary.simpleMessage("The letter E is not in the word in any spot."),
"tutorialTitle": MessageLookupByLibrary.simpleMessage("Guess the WORD in 6 tries."),
"tutorialWordCorrectSpot": MessageLookupByLibrary.simpleMessage(
"The letter P is in the word and in the correct spot.",
),
"tutorialWordWrongSpot": MessageLookupByLibrary.simpleMessage(
"The letter A is in the word but in the wrong spot.",
),
"tutorialWordWrongSpot": MessageLookupByLibrary.simpleMessage("The letter A is in the word but in the wrong spot."),
"viewLevels": MessageLookupByLibrary.simpleMessage("View levels"),
"viewStatistic": MessageLookupByLibrary.simpleMessage("View statistic"),
"winMessage": MessageLookupByLibrary.simpleMessage("You win!"),
"winRate": MessageLookupByLibrary.simpleMessage("Win\nrate"),
"wordNotFound": MessageLookupByLibrary.simpleMessage(
"Word not found in dictionary",
),
"wordTooShort": MessageLookupByLibrary.simpleMessage(
"Word is not correct length",
),
"wordNotFound": MessageLookupByLibrary.simpleMessage("Word not found in dictionary"),
"wordTooShort": MessageLookupByLibrary.simpleMessage("Word is not correct length"),
};
}
51 changes: 14 additions & 37 deletions lib/src/core/constant/localization/generated/intl/messages_ru.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,24 +20,21 @@ typedef String MessageIfAbsent(String messageStr, List<dynamic> args);
class MessageLookup extends MessageLookupByLibrary {
String get localeName => 'ru';

static String m0(attemptNumber) =>
"У меня не получилось разгадать слово за ${attemptNumber} попыток.";
static String m0(attemptNumber) => "У меня не получилось разгадать слово за ${attemptNumber} попыток.";

static String m1(attemptNumber) =>
"Я угадал слово за ${attemptNumber}/6 попыток.";
static String m1(attemptNumber) => "Я угадал слово за ${attemptNumber}/6 попыток.";

static String m2(number) => "Уровень ${number}";

final messages = _notInlinedMessages(_notInlinedMessages);

static Map<String, Function> _notInlinedMessages(_) => <String, Function>{
"about": MessageLookupByLibrary.simpleMessage("О приложении"),
"appDictionary": MessageLookupByLibrary.simpleMessage("Язык словаря"),
"appLanguage": MessageLookupByLibrary.simpleMessage("Язык приложения"),
"appTitle": MessageLookupByLibrary.simpleMessage("Словень Плюс"),
"casual": MessageLookupByLibrary.simpleMessage("Обычный"),
"checkResult": MessageLookupByLibrary.simpleMessage(
"Можешь проверить свой результат тут:",
),
"checkResult": MessageLookupByLibrary.simpleMessage("Можешь проверить свой результат тут:"),
"checkResultLose": m0,
"checkResultWin": m1,
"colorMode": MessageLookupByLibrary.simpleMessage("Цветовой режим"),
Expand All @@ -48,22 +45,16 @@ class MessageLookup extends MessageLookupByLibrary {
"daily": MessageLookupByLibrary.simpleMessage("Ежедневный"),
"en": MessageLookupByLibrary.simpleMessage("Английский"),
"examples": MessageLookupByLibrary.simpleMessage("Примеры"),
"guessDistribution": MessageLookupByLibrary.simpleMessage(
"Распределение догадок",
),
"guessDistribution": MessageLookupByLibrary.simpleMessage("Распределение догадок"),
"highContrast": MessageLookupByLibrary.simpleMessage("Высокий контраст"),
"levelNumber": m2,
"levels": MessageLookupByLibrary.simpleMessage("Уровни"),
"loseMessage": MessageLookupByLibrary.simpleMessage("Вы проиграли"),
"maxStreak": MessageLookupByLibrary.simpleMessage("Макс.\nСерия"),
"newWordAvailableEachDay": MessageLookupByLibrary.simpleMessage(
"Новое слово будет доступно каждый день!",
),
"newWordAvailableEachDay": MessageLookupByLibrary.simpleMessage("Новое слово будет доступно каждый день!"),
"nextLevel": MessageLookupByLibrary.simpleMessage("Следующий уровень"),
"nextWord": MessageLookupByLibrary.simpleMessage("Следующее слово через"),
"notPlayed": MessageLookupByLibrary.simpleMessage(
"Вы не сыграли ни одной игры",
),
"notPlayed": MessageLookupByLibrary.simpleMessage("Вы не сыграли ни одной игры"),
"other": MessageLookupByLibrary.simpleMessage("Другой"),
"played": MessageLookupByLibrary.simpleMessage("Сыграно"),
"ru": MessageLookupByLibrary.simpleMessage("Русский"),
Expand All @@ -86,29 +77,15 @@ class MessageLookup extends MessageLookupByLibrary {
"tutorialDescription2": MessageLookupByLibrary.simpleMessage(
"После каждого угадывания цвет плиток будет меняться, чтобы показать, насколько близко ваше предположение было к слову.",
),
"tutorialNotInWordSpot": MessageLookupByLibrary.simpleMessage(
"Буквы А нет в слове ни в одном месте.",
),
"tutorialTitle": MessageLookupByLibrary.simpleMessage(
"Угадайте СЛОВО за 6 попыток.",
),
"tutorialWordCorrectSpot": MessageLookupByLibrary.simpleMessage(
"Буква П есть в слове и в нужном месте.",
),
"tutorialWordWrongSpot": MessageLookupByLibrary.simpleMessage(
"Буква Ш есть в слове, но не в том месте.",
),
"tutorialNotInWordSpot": MessageLookupByLibrary.simpleMessage("Буквы А нет в слове ни в одном месте."),
"tutorialTitle": MessageLookupByLibrary.simpleMessage("Угадайте СЛОВО за 6 попыток."),
"tutorialWordCorrectSpot": MessageLookupByLibrary.simpleMessage("Буква П есть в слове и в нужном месте."),
"tutorialWordWrongSpot": MessageLookupByLibrary.simpleMessage("Буква Ш есть в слове, но не в том месте."),
"viewLevels": MessageLookupByLibrary.simpleMessage("Посмотреть уровни"),
"viewStatistic": MessageLookupByLibrary.simpleMessage(
"Посмотреть статистику",
),
"viewStatistic": MessageLookupByLibrary.simpleMessage("Посмотреть статистику"),
"winMessage": MessageLookupByLibrary.simpleMessage("Вы победили!"),
"winRate": MessageLookupByLibrary.simpleMessage("Показатель\nпобед"),
"wordNotFound": MessageLookupByLibrary.simpleMessage(
"Слово не найдено в словаре",
),
"wordTooShort": MessageLookupByLibrary.simpleMessage(
"Слово неправильной длины",
),
"wordNotFound": MessageLookupByLibrary.simpleMessage("Слово не найдено в словаре"),
"wordTooShort": MessageLookupByLibrary.simpleMessage("Слово неправильной длины"),
};
}
Loading

0 comments on commit 39b8a12

Please sign in to comment.