feat(l10n): Add translations for notes feature

This commit is contained in:
cogwheel0
2025-12-06 20:17:29 +05:30
parent 233697e59a
commit 7d4333b28d
11 changed files with 437 additions and 11 deletions

View File

@@ -226,6 +226,7 @@ class ConduitMarkdown {
required ConduitThemeExtension conduitTheme,
required String code,
}) {
final l10n = AppLocalizations.of(context);
final textStyle = AppTypography.bodySmallStyle.copyWith(
color: conduitTheme.codeText.withValues(alpha: 0.7),
);
@@ -246,7 +247,8 @@ class ConduitMarkdown {
mainAxisSize: MainAxisSize.min,
children: [
Text(
'Mermaid preview is not available on this platform.',
l10n?.mermaidPreviewUnavailable ??
'Mermaid preview is not available on this platform.',
style: textStyle,
),
const SizedBox(height: Spacing.xs),
@@ -324,6 +326,7 @@ class ConduitMarkdown {
required BuildContext context,
required ConduitThemeExtension conduitTheme,
}) {
final l10n = AppLocalizations.of(context);
final textStyle = AppTypography.bodySmallStyle.copyWith(
color: conduitTheme.codeText.withValues(alpha: 0.7),
);
@@ -340,7 +343,8 @@ class ConduitMarkdown {
),
),
child: Text(
'Chart preview is not available on this platform.',
l10n?.chartPreviewUnavailable ??
'Chart preview is not available on this platform.',
style: textStyle,
),
);