Skip to content

Commit

Permalink
Share functional
Browse files Browse the repository at this point in the history
  • Loading branch information
Carapacik committed Nov 28, 2023
1 parent d6e2411 commit bb629d7
Show file tree
Hide file tree
Showing 17 changed files with 360 additions and 162 deletions.
2 changes: 2 additions & 0 deletions lib/src/core/constants/constants.dart
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
const maxMobileWidth = 768.0;
const webLink = 'https://carapacik.github.io/WordlyPlus/';
const androidLink = 'https://play.google.com/store/apps/details?id=com.carapacik.wordly';
18 changes: 13 additions & 5 deletions lib/src/core/localization/generated/intl/messages_en.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,13 @@ typedef String MessageIfAbsent(String messageStr, List<dynamic> args);
class MessageLookup extends MessageLookupByLibrary {
String get localeName => 'en';

static String m0(number) => "Level ${number}";
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 m2(number) => "Level ${number}";

final messages = _notInlinedMessages(_notInlinedMessages);
static Map<String, Function> _notInlinedMessages(_) => <String, Function>{
Expand All @@ -29,6 +35,10 @@ class MessageLookup extends MessageLookupByLibrary {
"appLanguage": MessageLookupByLibrary.simpleMessage("App language"),
"appTitle": MessageLookupByLibrary.simpleMessage("Wordly Plus"),
"casual": MessageLookupByLibrary.simpleMessage("Default"),
"checkResult": MessageLookupByLibrary.simpleMessage(
"You can check your result here:"),
"checkResultLose": m0,
"checkResultWin": m1,
"colorMode": MessageLookupByLibrary.simpleMessage("Color mode"),
"currentStreak":
MessageLookupByLibrary.simpleMessage("Current\nStreak"),
Expand All @@ -37,14 +47,12 @@ class MessageLookup extends MessageLookupByLibrary {
"guessDistribution":
MessageLookupByLibrary.simpleMessage("Guess distribution"),
"highContrast": MessageLookupByLibrary.simpleMessage("High contrast"),
"levelNumber": m0,
"levelNumber": m2,
"levels": MessageLookupByLibrary.simpleMessage("Levels"),
"loseMessage": MessageLookupByLibrary.simpleMessage("You lost"),
"maxStreak": MessageLookupByLibrary.simpleMessage("Max\nStreak"),
"message_new_word": MessageLookupByLibrary.simpleMessage(
"subject=Wordle%20-%20New%20word&body=Word%20-%0AMeaning%20-"),
"nextLevel": MessageLookupByLibrary.simpleMessage("Next level"),
"nextWord": MessageLookupByLibrary.simpleMessage("Next wordle in"),
"nextWord": MessageLookupByLibrary.simpleMessage("Next word in"),
"notPlayed": MessageLookupByLibrary.simpleMessage(
"You haven\'t played a single game"),
"other": MessageLookupByLibrary.simpleMessage("Other"),
Expand Down
16 changes: 12 additions & 4 deletions lib/src/core/localization/generated/intl/messages_ru.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,13 @@ typedef String MessageIfAbsent(String messageStr, List<dynamic> args);
class MessageLookup extends MessageLookupByLibrary {
String get localeName => 'ru';

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

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

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

final messages = _notInlinedMessages(_notInlinedMessages);
static Map<String, Function> _notInlinedMessages(_) => <String, Function>{
Expand All @@ -29,6 +35,10 @@ class MessageLookup extends MessageLookupByLibrary {
"appLanguage": MessageLookupByLibrary.simpleMessage("Язык приложения"),
"appTitle": MessageLookupByLibrary.simpleMessage("Словень Плюс"),
"casual": MessageLookupByLibrary.simpleMessage("Обычный"),
"checkResult": MessageLookupByLibrary.simpleMessage(
"Можешь проверить свой результат тут:"),
"checkResultLose": m0,
"checkResultWin": m1,
"colorMode": MessageLookupByLibrary.simpleMessage("Цветовой режим"),
"currentStreak": MessageLookupByLibrary.simpleMessage("Текущая\nСерия"),
"daily": MessageLookupByLibrary.simpleMessage("Ежедневный"),
Expand All @@ -37,12 +47,10 @@ class MessageLookup extends MessageLookupByLibrary {
MessageLookupByLibrary.simpleMessage("Распределение догадок"),
"highContrast":
MessageLookupByLibrary.simpleMessage("Высокий контраст"),
"levelNumber": m0,
"levelNumber": m2,
"levels": MessageLookupByLibrary.simpleMessage("Уровни"),
"loseMessage": MessageLookupByLibrary.simpleMessage("Вы проиграли"),
"maxStreak": MessageLookupByLibrary.simpleMessage("Макс.\nСерия"),
"message_new_word": MessageLookupByLibrary.simpleMessage(
"subject=Словень%20-%20Новое%20слово&body=Слово%20-%0AЗначение%20-"),
"nextLevel": MessageLookupByLibrary.simpleMessage("Следующий уровень"),
"nextWord":
MessageLookupByLibrary.simpleMessage("Следующее слово через"),
Expand Down
Loading

0 comments on commit bb629d7

Please sign in to comment.