Internationalize user-facing strings and export them for translations

Changelog-Added: Internationalized user-facing strings and exported them for translations
Signed-off-by: Terry Yiu <git@tyiu.xyz>
This commit is contained in:
2025-06-26 23:13:31 -04:00
committed by William Casarin
parent d07c3e9135
commit 3f5036bd32
37 changed files with 2198 additions and 437 deletions

View File

@@ -2,7 +2,7 @@ use std::collections::{hash_map::ValuesMut, HashMap};
use enostr::{Pubkey, RelayPool};
use nostrdb::Transaction;
use notedeck::{AppContext, FALLBACK_PUBKEY};
use notedeck::{tr, AppContext, FALLBACK_PUBKEY};
use tracing::{error, info};
use crate::{
@@ -397,8 +397,8 @@ impl Deck {
'🇩'
}
pub fn default_name() -> &'static str {
"Default Deck"
pub fn default_name() -> String {
tr!("Default Deck", "Name of the default deck feed")
}
pub fn new(icon: char, name: String) -> Self {