mirror of
https://github.com/nostrlabs-io/zap-stream-flutter.git
synced 2025-06-15 11:48:21 +00:00
@ -4,14 +4,13 @@
|
||||
// coverage:ignore-file
|
||||
// ignore_for_file: type=lint, unused_import
|
||||
|
||||
import 'package:flutter/gestures.dart';
|
||||
import 'package:flutter/widgets.dart';
|
||||
import 'package:intl/intl.dart';
|
||||
import 'package:slang/generated.dart';
|
||||
import 'strings.g.dart';
|
||||
|
||||
// Path: <root>
|
||||
class TranslationsFi implements Translations {
|
||||
class TranslationsFi extends Translations {
|
||||
/// You can call this constructor and build your own translation instance of this locale.
|
||||
/// Constructing via the enum [AppLocale.build] is preferred.
|
||||
TranslationsFi({Map<String, Node>? overrides, PluralResolver? cardinalResolver, PluralResolver? ordinalResolver, TranslationMetadata<AppLocale, Translations>? meta})
|
||||
@ -21,7 +20,9 @@ class TranslationsFi implements Translations {
|
||||
overrides: overrides ?? {},
|
||||
cardinalResolver: cardinalResolver,
|
||||
ordinalResolver: ordinalResolver,
|
||||
) {
|
||||
),
|
||||
super(cardinalResolver: cardinalResolver, ordinalResolver: ordinalResolver) {
|
||||
super.$meta.setFlatMapFunction($meta.getTranslation); // copy base translations to super.$meta
|
||||
$meta.setFlatMapFunction(_flatMapFunction);
|
||||
}
|
||||
|
||||
@ -29,7 +30,7 @@ class TranslationsFi implements Translations {
|
||||
@override final TranslationMetadata<AppLocale, Translations> $meta;
|
||||
|
||||
/// Access flat map
|
||||
@override dynamic operator[](String key) => $meta.getTranslation(key);
|
||||
@override dynamic operator[](String key) => $meta.getTranslation(key) ?? super.$meta.getTranslation(key);
|
||||
|
||||
late final TranslationsFi _root = this; // ignore: unused_field
|
||||
|
||||
@ -70,32 +71,32 @@ class TranslationsFi implements Translations {
|
||||
}
|
||||
|
||||
// Path: stream
|
||||
class _TranslationsStreamFi implements TranslationsStreamEn {
|
||||
_TranslationsStreamFi._(this._root);
|
||||
class _TranslationsStreamFi extends TranslationsStreamEn {
|
||||
_TranslationsStreamFi._(TranslationsFi root) : this._root = root, super.internal(root);
|
||||
|
||||
final TranslationsFi _root; // ignore: unused_field
|
||||
|
||||
// Translations
|
||||
@override late final _TranslationsStreamStatusFi status = _TranslationsStreamStatusFi._(_root);
|
||||
@override String started({ required Object timestamp}) => 'Aloitettu ${timestamp}';
|
||||
@override String started({required Object timestamp}) => 'Aloitettu ${timestamp}';
|
||||
@override late final _TranslationsStreamChatFi chat = _TranslationsStreamChatFi._(_root);
|
||||
}
|
||||
|
||||
// Path: goal
|
||||
class _TranslationsGoalFi implements TranslationsGoalEn {
|
||||
_TranslationsGoalFi._(this._root);
|
||||
class _TranslationsGoalFi extends TranslationsGoalEn {
|
||||
_TranslationsGoalFi._(TranslationsFi root) : this._root = root, super.internal(root);
|
||||
|
||||
final TranslationsFi _root; // ignore: unused_field
|
||||
|
||||
// Translations
|
||||
@override String title({ required Object amount}) => 'Tavoite: ${amount}';
|
||||
@override String remaining({ required Object amount}) => 'Jäljellä: ${amount}';
|
||||
@override String title({required Object amount}) => 'Tavoite: ${amount}';
|
||||
@override String remaining({required Object amount}) => 'Jäljellä: ${amount}';
|
||||
@override String get complete => 'TÄYDELLINEN';
|
||||
}
|
||||
|
||||
// Path: button
|
||||
class _TranslationsButtonFi implements TranslationsButtonEn {
|
||||
_TranslationsButtonFi._(this._root);
|
||||
class _TranslationsButtonFi extends TranslationsButtonEn {
|
||||
_TranslationsButtonFi._(TranslationsFi root) : this._root = root, super.internal(root);
|
||||
|
||||
final TranslationsFi _root; // ignore: unused_field
|
||||
|
||||
@ -120,20 +121,20 @@ class _TranslationsButtonFi implements TranslationsButtonEn {
|
||||
}
|
||||
|
||||
// Path: embed
|
||||
class _TranslationsEmbedFi implements TranslationsEmbedEn {
|
||||
_TranslationsEmbedFi._(this._root);
|
||||
class _TranslationsEmbedFi extends TranslationsEmbedEn {
|
||||
_TranslationsEmbedFi._(TranslationsFi root) : this._root = root, super.internal(root);
|
||||
|
||||
final TranslationsFi _root; // ignore: unused_field
|
||||
|
||||
// Translations
|
||||
@override String article_by({ required Object name}) => 'Artikkeli ${name}';
|
||||
@override String note_by({ required Object name}) => 'Viesti lähettäjältä ${name}';
|
||||
@override String live_stream_by({ required Object name}) => 'Suora lähetys osoitteessa ${name}';
|
||||
@override String article_by({required Object name}) => 'Artikkeli ${name}';
|
||||
@override String note_by({required Object name}) => 'Viesti lähettäjältä ${name}';
|
||||
@override String live_stream_by({required Object name}) => 'Suora lähetys osoitteessa ${name}';
|
||||
}
|
||||
|
||||
// Path: stream_list
|
||||
class _TranslationsStreamListFi implements TranslationsStreamListEn {
|
||||
_TranslationsStreamListFi._(this._root);
|
||||
class _TranslationsStreamListFi extends TranslationsStreamListEn {
|
||||
_TranslationsStreamListFi._(TranslationsFi root) : this._root = root, super.internal(root);
|
||||
|
||||
final TranslationsFi _root; // ignore: unused_field
|
||||
|
||||
@ -145,17 +146,17 @@ class _TranslationsStreamListFi implements TranslationsStreamListEn {
|
||||
}
|
||||
|
||||
// Path: zap
|
||||
class _TranslationsZapFi implements TranslationsZapEn {
|
||||
_TranslationsZapFi._(this._root);
|
||||
class _TranslationsZapFi extends TranslationsZapEn {
|
||||
_TranslationsZapFi._(TranslationsFi root) : this._root = root, super.internal(root);
|
||||
|
||||
final TranslationsFi _root; // ignore: unused_field
|
||||
|
||||
// Translations
|
||||
@override String title({ required Object name}) => 'Zap ${name}';
|
||||
@override String title({required Object name}) => 'Zap ${name}';
|
||||
@override String get custom_amount => 'Mukautettu määrä';
|
||||
@override String get confirm => 'Vahvista';
|
||||
@override String get comment => 'Kommentoi';
|
||||
@override String button_zap_ready({ required Object amount}) => 'Zap ${amount} satsia';
|
||||
@override String button_zap_ready({required Object amount}) => 'Zap ${amount} satsia';
|
||||
@override String get button_zap => 'Zap';
|
||||
@override String get button_open_wallet => 'Avaa lompakossa';
|
||||
@override String get copy => 'Kopioitu leikepöydälle';
|
||||
@ -163,8 +164,8 @@ class _TranslationsZapFi implements TranslationsZapEn {
|
||||
}
|
||||
|
||||
// Path: profile
|
||||
class _TranslationsProfileFi implements TranslationsProfileEn {
|
||||
_TranslationsProfileFi._(this._root);
|
||||
class _TranslationsProfileFi extends TranslationsProfileEn {
|
||||
_TranslationsProfileFi._(TranslationsFi root) : this._root = root, super.internal(root);
|
||||
|
||||
final TranslationsFi _root; // ignore: unused_field
|
||||
|
||||
@ -174,8 +175,8 @@ class _TranslationsProfileFi implements TranslationsProfileEn {
|
||||
}
|
||||
|
||||
// Path: login
|
||||
class _TranslationsLoginFi implements TranslationsLoginEn {
|
||||
_TranslationsLoginFi._(this._root);
|
||||
class _TranslationsLoginFi extends TranslationsLoginEn {
|
||||
_TranslationsLoginFi._(TranslationsFi root) : this._root = root, super.internal(root);
|
||||
|
||||
final TranslationsFi _root; // ignore: unused_field
|
||||
|
||||
@ -188,8 +189,8 @@ class _TranslationsLoginFi implements TranslationsLoginEn {
|
||||
}
|
||||
|
||||
// Path: stream.status
|
||||
class _TranslationsStreamStatusFi implements TranslationsStreamStatusEn {
|
||||
_TranslationsStreamStatusFi._(this._root);
|
||||
class _TranslationsStreamStatusFi extends TranslationsStreamStatusEn {
|
||||
_TranslationsStreamStatusFi._(TranslationsFi root) : this._root = root, super.internal(root);
|
||||
|
||||
final TranslationsFi _root; // ignore: unused_field
|
||||
|
||||
@ -200,34 +201,34 @@ class _TranslationsStreamStatusFi implements TranslationsStreamStatusEn {
|
||||
}
|
||||
|
||||
// Path: stream.chat
|
||||
class _TranslationsStreamChatFi implements TranslationsStreamChatEn {
|
||||
_TranslationsStreamChatFi._(this._root);
|
||||
class _TranslationsStreamChatFi extends TranslationsStreamChatEn {
|
||||
_TranslationsStreamChatFi._(TranslationsFi root) : this._root = root, super.internal(root);
|
||||
|
||||
final TranslationsFi _root; // ignore: unused_field
|
||||
|
||||
// Translations
|
||||
@override String get disabled => 'CHAT POISTETTU KÄYTÖSTÄ';
|
||||
@override String disabled_timeout({ required Object time}) => 'Aikakatkaisu päättyy: ${time}';
|
||||
@override String disabled_timeout({required Object time}) => 'Aikakatkaisu päättyy: ${time}';
|
||||
|
||||
/// Chat-viesti, joka näyttää aikakatkaisutapahtumat
|
||||
@override TextSpan timeout({ required InlineSpan mod, required InlineSpan user, required InlineSpan time, TextStyle? style, GestureRecognizer? recognizer}) => TextSpan(children: [
|
||||
@override TextSpan timeout({required InlineSpan mod, required InlineSpan user, required InlineSpan time}) => TextSpan(children: [
|
||||
mod,
|
||||
const TextSpan(text: ' ajastettu '),
|
||||
user,
|
||||
const TextSpan(text: ' for '),
|
||||
time,
|
||||
], style: style, recognizer: recognizer);
|
||||
]);
|
||||
|
||||
/// Virta päättyi alatunnisteen alareunaan chatissa
|
||||
@override String get ended => 'STREAM PÄÄTTYNYT';
|
||||
|
||||
/// Chat-viestin näyttäminen stream zaps
|
||||
@override TextSpan zap({ required InlineSpan user, required InlineSpan amount, TextStyle? style, GestureRecognizer? recognizer}) => TextSpan(children: [
|
||||
@override TextSpan zap({required InlineSpan user, required InlineSpan amount}) => TextSpan(children: [
|
||||
user,
|
||||
const TextSpan(text: ' zappasi '),
|
||||
amount,
|
||||
const TextSpan(text: ' satsia'),
|
||||
], style: style, recognizer: recognizer);
|
||||
]);
|
||||
|
||||
@override late final _TranslationsStreamChatWriteFi write = _TranslationsStreamChatWriteFi._(_root);
|
||||
@override late final _TranslationsStreamChatBadgeFi badge = _TranslationsStreamChatBadgeFi._(_root);
|
||||
@ -235,8 +236,8 @@ class _TranslationsStreamChatFi implements TranslationsStreamChatEn {
|
||||
}
|
||||
|
||||
// Path: zap.error
|
||||
class _TranslationsZapErrorFi implements TranslationsZapErrorEn {
|
||||
_TranslationsZapErrorFi._(this._root);
|
||||
class _TranslationsZapErrorFi extends TranslationsZapErrorEn {
|
||||
_TranslationsZapErrorFi._(TranslationsFi root) : this._root = root, super.internal(root);
|
||||
|
||||
final TranslationsFi _root; // ignore: unused_field
|
||||
|
||||
@ -247,8 +248,8 @@ class _TranslationsZapErrorFi implements TranslationsZapErrorEn {
|
||||
}
|
||||
|
||||
// Path: profile.edit
|
||||
class _TranslationsProfileEditFi implements TranslationsProfileEditEn {
|
||||
_TranslationsProfileEditFi._(this._root);
|
||||
class _TranslationsProfileEditFi extends TranslationsProfileEditEn {
|
||||
_TranslationsProfileEditFi._(TranslationsFi root) : this._root = root, super.internal(root);
|
||||
|
||||
final TranslationsFi _root; // ignore: unused_field
|
||||
|
||||
@ -261,8 +262,8 @@ class _TranslationsProfileEditFi implements TranslationsProfileEditEn {
|
||||
}
|
||||
|
||||
// Path: login.error
|
||||
class _TranslationsLoginErrorFi implements TranslationsLoginErrorEn {
|
||||
_TranslationsLoginErrorFi._(this._root);
|
||||
class _TranslationsLoginErrorFi extends TranslationsLoginErrorEn {
|
||||
_TranslationsLoginErrorFi._(TranslationsFi root) : this._root = root, super.internal(root);
|
||||
|
||||
final TranslationsFi _root; // ignore: unused_field
|
||||
|
||||
@ -271,8 +272,8 @@ class _TranslationsLoginErrorFi implements TranslationsLoginErrorEn {
|
||||
}
|
||||
|
||||
// Path: stream.chat.write
|
||||
class _TranslationsStreamChatWriteFi implements TranslationsStreamChatWriteEn {
|
||||
_TranslationsStreamChatWriteFi._(this._root);
|
||||
class _TranslationsStreamChatWriteFi extends TranslationsStreamChatWriteEn {
|
||||
_TranslationsStreamChatWriteFi._(TranslationsFi root) : this._root = root, super.internal(root);
|
||||
|
||||
final TranslationsFi _root; // ignore: unused_field
|
||||
|
||||
@ -289,8 +290,8 @@ class _TranslationsStreamChatWriteFi implements TranslationsStreamChatWriteEn {
|
||||
}
|
||||
|
||||
// Path: stream.chat.badge
|
||||
class _TranslationsStreamChatBadgeFi implements TranslationsStreamChatBadgeEn {
|
||||
_TranslationsStreamChatBadgeFi._(this._root);
|
||||
class _TranslationsStreamChatBadgeFi extends TranslationsStreamChatBadgeEn {
|
||||
_TranslationsStreamChatBadgeFi._(TranslationsFi root) : this._root = root, super.internal(root);
|
||||
|
||||
final TranslationsFi _root; // ignore: unused_field
|
||||
|
||||
@ -301,26 +302,26 @@ class _TranslationsStreamChatBadgeFi implements TranslationsStreamChatBadgeEn {
|
||||
}
|
||||
|
||||
// Path: stream.chat.raid
|
||||
class _TranslationsStreamChatRaidFi implements TranslationsStreamChatRaidEn {
|
||||
_TranslationsStreamChatRaidFi._(this._root);
|
||||
class _TranslationsStreamChatRaidFi extends TranslationsStreamChatRaidEn {
|
||||
_TranslationsStreamChatRaidFi._(TranslationsFi root) : this._root = root, super.internal(root);
|
||||
|
||||
final TranslationsFi _root; // ignore: unused_field
|
||||
|
||||
// Translations
|
||||
|
||||
/// Chat-viesti toiseen streamiin
|
||||
@override String to({ required Object name}) => 'RAIDING ${name}';
|
||||
@override String to({required Object name}) => 'RAIDING ${name}';
|
||||
|
||||
/// Chat raid viesti toisesta virrasta
|
||||
@override String from({ required Object name}) => 'RAID FROM ${name}';
|
||||
@override String from({required Object name}) => 'RAID FROM ${name}';
|
||||
|
||||
/// Lähtölaskenta ajastin automaattista ratsastusta varten
|
||||
@override String countdown({ required Object time}) => 'Ryöstöretket osoitteessa ${time}';
|
||||
@override String countdown({required Object time}) => 'Ryöstöretket osoitteessa ${time}';
|
||||
}
|
||||
|
||||
// Path: profile.edit.error
|
||||
class _TranslationsProfileEditErrorFi implements TranslationsProfileEditErrorEn {
|
||||
_TranslationsProfileEditErrorFi._(this._root);
|
||||
class _TranslationsProfileEditErrorFi extends TranslationsProfileEditErrorEn {
|
||||
_TranslationsProfileEditErrorFi._(TranslationsFi root) : this._root = root, super.internal(root);
|
||||
|
||||
final TranslationsFi _root; // ignore: unused_field
|
||||
|
||||
@ -344,32 +345,32 @@ extension on TranslationsFi {
|
||||
case 'stream.status.live': return 'LIVE';
|
||||
case 'stream.status.ended': return 'ENDED';
|
||||
case 'stream.status.planned': return 'SUUNNITELTU';
|
||||
case 'stream.started': return ({ required Object timestamp}) => 'Aloitettu ${timestamp}';
|
||||
case 'stream.started': return ({required Object timestamp}) => 'Aloitettu ${timestamp}';
|
||||
case 'stream.chat.disabled': return 'CHAT POISTETTU KÄYTÖSTÄ';
|
||||
case 'stream.chat.disabled_timeout': return ({ required Object time}) => 'Aikakatkaisu päättyy: ${time}';
|
||||
case 'stream.chat.timeout': return ({ required InlineSpan mod, required InlineSpan user, required InlineSpan time, TextStyle? style, GestureRecognizer? recognizer}) => TextSpan(children: [
|
||||
case 'stream.chat.disabled_timeout': return ({required Object time}) => 'Aikakatkaisu päättyy: ${time}';
|
||||
case 'stream.chat.timeout': return ({required InlineSpan mod, required InlineSpan user, required InlineSpan time}) => TextSpan(children: [
|
||||
mod,
|
||||
const TextSpan(text: ' ajastettu '),
|
||||
user,
|
||||
const TextSpan(text: ' for '),
|
||||
time,
|
||||
], style: style, recognizer: recognizer);
|
||||
]);
|
||||
case 'stream.chat.ended': return 'STREAM PÄÄTTYNYT';
|
||||
case 'stream.chat.zap': return ({ required InlineSpan user, required InlineSpan amount, TextStyle? style, GestureRecognizer? recognizer}) => TextSpan(children: [
|
||||
case 'stream.chat.zap': return ({required InlineSpan user, required InlineSpan amount}) => TextSpan(children: [
|
||||
user,
|
||||
const TextSpan(text: ' zappasi '),
|
||||
amount,
|
||||
const TextSpan(text: ' satsia'),
|
||||
], style: style, recognizer: recognizer);
|
||||
]);
|
||||
case 'stream.chat.write.label': return 'Kirjoita viesti';
|
||||
case 'stream.chat.write.no_signer': return 'Ei voi kirjoittaa viestejä npub-kirjautumisella';
|
||||
case 'stream.chat.write.login': return 'Kirjaudu sisään lähettääksesi viestejä';
|
||||
case 'stream.chat.badge.awarded_to': return 'Myönnetty:';
|
||||
case 'stream.chat.raid.to': return ({ required Object name}) => 'RAIDING ${name}';
|
||||
case 'stream.chat.raid.from': return ({ required Object name}) => 'RAID FROM ${name}';
|
||||
case 'stream.chat.raid.countdown': return ({ required Object time}) => 'Ryöstöretket osoitteessa ${time}';
|
||||
case 'goal.title': return ({ required Object amount}) => 'Tavoite: ${amount}';
|
||||
case 'goal.remaining': return ({ required Object amount}) => 'Jäljellä: ${amount}';
|
||||
case 'stream.chat.raid.to': return ({required Object name}) => 'RAIDING ${name}';
|
||||
case 'stream.chat.raid.from': return ({required Object name}) => 'RAID FROM ${name}';
|
||||
case 'stream.chat.raid.countdown': return ({required Object time}) => 'Ryöstöretket osoitteessa ${time}';
|
||||
case 'goal.title': return ({required Object amount}) => 'Tavoite: ${amount}';
|
||||
case 'goal.remaining': return ({required Object amount}) => 'Jäljellä: ${amount}';
|
||||
case 'goal.complete': return 'TÄYDELLINEN';
|
||||
case 'button.login': return 'Kirjaudu sisään';
|
||||
case 'button.logout': return 'Kirjaudu ulos';
|
||||
@ -380,18 +381,18 @@ extension on TranslationsFi {
|
||||
case 'button.unmute': return 'Poista mykistys';
|
||||
case 'button.share': return 'Jaa';
|
||||
case 'button.save': return 'Tallenna';
|
||||
case 'embed.article_by': return ({ required Object name}) => 'Artikkeli ${name}';
|
||||
case 'embed.note_by': return ({ required Object name}) => 'Viesti lähettäjältä ${name}';
|
||||
case 'embed.live_stream_by': return ({ required Object name}) => 'Suora lähetys osoitteessa ${name}';
|
||||
case 'embed.article_by': return ({required Object name}) => 'Artikkeli ${name}';
|
||||
case 'embed.note_by': return ({required Object name}) => 'Viesti lähettäjältä ${name}';
|
||||
case 'embed.live_stream_by': return ({required Object name}) => 'Suora lähetys osoitteessa ${name}';
|
||||
case 'stream_list.following': return 'Seuraa';
|
||||
case 'stream_list.live': return 'Live';
|
||||
case 'stream_list.planned': return 'Suunniteltu';
|
||||
case 'stream_list.ended': return 'Päättynyt';
|
||||
case 'zap.title': return ({ required Object name}) => 'Zap ${name}';
|
||||
case 'zap.title': return ({required Object name}) => 'Zap ${name}';
|
||||
case 'zap.custom_amount': return 'Mukautettu määrä';
|
||||
case 'zap.confirm': return 'Vahvista';
|
||||
case 'zap.comment': return 'Kommentoi';
|
||||
case 'zap.button_zap_ready': return ({ required Object amount}) => 'Zap ${amount} satsia';
|
||||
case 'zap.button_zap_ready': return ({required Object amount}) => 'Zap ${amount} satsia';
|
||||
case 'zap.button_zap': return 'Zap';
|
||||
case 'zap.button_open_wallet': return 'Avaa lompakossa';
|
||||
case 'zap.copy': return 'Kopioitu leikepöydälle';
|
||||
|
Reference in New Issue
Block a user