Skip to content

Commit 9af06a1

Browse files
committed
feat(i18n): add Galician translation
1 parent 081afa7 commit 9af06a1

4 files changed

Lines changed: 559 additions & 0 deletions

File tree

‎.config/crowdin.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export_languages:
1010
- de
1111
- es-ES
1212
- fr
13+
- gl
1314
- it
1415
- nl
1516
- "no"
@@ -40,6 +41,7 @@ files:
4041
de: "de"
4142
es-ES: "es"
4243
fr: "fr"
44+
gl: "gl"
4345
it: "it"
4446
nl: "nl"
4547
"no": "nb"

‎crates/openlogi-core/src/locale.rs‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ pub const SUPPORTED: &[(&str, &str)] = &[
3434
("en", "English"),
3535
("es", "Español"),
3636
("fr", "Français"),
37+
("gl", "Galego"),
3738
("it", "Italiano"),
3839
("nl", "Nederlands"),
3940
("nb", "Norsk"),
@@ -169,6 +170,8 @@ mod tests {
169170
assert_eq!(match_supported("it"), Some("it"));
170171
assert_eq!(match_supported("it-IT"), Some("it"));
171172
assert_eq!(match_supported("fr-FR"), Some("fr"));
173+
assert_eq!(match_supported("gl"), Some("gl"));
174+
assert_eq!(match_supported("gl-ES"), Some("gl"));
172175
assert_eq!(match_supported("de"), Some("de"));
173176
assert_eq!(match_supported("ko-KR"), Some("ko"));
174177
assert_eq!(match_supported("pt"), Some("pt-PT"));

0 commit comments

Comments
 (0)