@@ -2,6 +2,7 @@ mod english;
22mod french;
33mod german;
44mod japanese;
5+ mod korean;
56mod spanish;
67
78use windows:: core:: PWSTR ;
@@ -17,15 +18,17 @@ pub enum LanguageId {
1718 French ,
1819 German ,
1920 Japanese ,
21+ Korean ,
2022}
2123
2224impl LanguageId {
23- pub const ALL : [ LanguageId ; 5 ] = [
25+ pub const ALL : [ LanguageId ; 6 ] = [
2426 LanguageId :: English ,
2527 LanguageId :: Spanish ,
2628 LanguageId :: French ,
2729 LanguageId :: German ,
2830 LanguageId :: Japanese ,
31+ LanguageId :: Korean ,
2932 ] ;
3033
3134 pub fn code ( self ) -> & ' static str {
@@ -35,6 +38,7 @@ impl LanguageId {
3538 Self :: French => "fr" ,
3639 Self :: German => "de" ,
3740 Self :: Japanese => "ja" ,
41+ Self :: Korean => "ko" ,
3842 }
3943 }
4044
@@ -45,6 +49,7 @@ impl LanguageId {
4549 Self :: French => "Français" ,
4650 Self :: German => "Deutsch" ,
4751 Self :: Japanese => "日本語" ,
52+ Self :: Korean => "한국어" ,
4853 }
4954 }
5055
@@ -55,6 +60,7 @@ impl LanguageId {
5560 Self :: French => french:: STRINGS ,
5661 Self :: German => german:: STRINGS ,
5762 Self :: Japanese => japanese:: STRINGS ,
63+ Self :: Korean => korean:: STRINGS ,
5864 }
5965 }
6066
@@ -65,6 +71,7 @@ impl LanguageId {
6571 Self :: French => french:: UPDATE_VIA_WINGET_LABEL ,
6672 Self :: German => german:: UPDATE_VIA_WINGET_LABEL ,
6773 Self :: Japanese => japanese:: UPDATE_VIA_WINGET_LABEL ,
74+ Self :: Korean => korean:: UPDATE_VIA_WINGET_LABEL ,
6875 }
6976 }
7077
@@ -80,6 +87,7 @@ impl LanguageId {
8087 "fr" => Some ( Self :: French ) ,
8188 "de" => Some ( Self :: German ) ,
8289 "ja" => Some ( Self :: Japanese ) ,
90+ "ko" => Some ( Self :: Korean ) ,
8391 _ => None ,
8492 }
8593 }
@@ -111,6 +119,7 @@ pub struct Strings {
111119 pub update_available : & ' static str ,
112120 pub update_prompt_now : & ' static str ,
113121 pub exit : & ' static str ,
122+ pub show_widget : & ' static str ,
114123 pub session_window : & ' static str ,
115124 pub weekly_window : & ' static str ,
116125 pub now : & ' static str ,
0 commit comments