[Feature]: Add russian language to analyzer #1

Merged
Dima merged 1 commits from feature/russuian_analuzer into main 2026-06-04 15:46:55 +03:00
Showing only changes of commit 158cd72202 - Show all commits
+3
View File
@@ -1446,6 +1446,7 @@ pub struct CommentOnExpr {
pub enum Analyzer {
English = 0,
Chinese = 1,
Russian = 2,
}
impl Analyzer {
/// String value of the enum field names used in the ProtoBuf definition.
@@ -1456,6 +1457,7 @@ impl Analyzer {
match self {
Self::English => "ENGLISH",
Self::Chinese => "CHINESE",
Self::Russian => "RUSSIAN",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
@@ -1463,6 +1465,7 @@ impl Analyzer {
match value {
"ENGLISH" => Some(Self::English),
"CHINESE" => Some(Self::Chinese),
"RUSSIAN" => Some(Self::Russian),
_ => None,
}
}