cs/parse/translation.rs
1use serde::{Deserialize, Serialize};
2use std::path::PathBuf;
3
4/// Represents a single translation entry found in a file
5#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
6pub struct TranslationEntry {
7 /// The full dot-notation key (e.g., "invoice.labels.add_new")
8 pub key: String,
9 /// The translation value (e.g., "Add New")
10 pub value: String,
11 /// The line number where the key is defined (1-indexed)
12 pub line: usize,
13 /// The file path where this entry was found
14 pub file: PathBuf,
15}