You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'The time interval in seconds after which the next top story will be fetched. Default and invalid values will be considered as 60 seconds.': 'The time interval in seconds after which the next top story will be fetched. Default and invalid values will be considered as 60 seconds.',
21
23
'Language': 'Sprache',
22
24
'The Language the Plugin will use to search for Definitions and Pronunciations.': 'Die Sprache, welche von dieser Erweiterung verwendet wird, um nach Definitionen zu suchen.',
Copy file name to clipboardExpand all lines: src/l10n/locale/en.ts
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,9 @@ export default {
17
17
18
18
//settingsTab.ts
19
19
"Reset to default": "Reset to default",
20
-
'Dictionary Settings': 'Dictionary Settings',
20
+
'HackerNews Settings': 'HackerNews Settings',
21
+
'Refresh Interval': 'Refresh Interval',
22
+
'The time interval in seconds after which the next top story will be fetched. Default and invalid values will be considered as 60 seconds.': 'The time interval in seconds after which the next top story will be fetched. Default and invalid values will be considered as 60 seconds.',
21
23
'Language': 'Language',
22
24
'The Language the Plugin will use to search for Definitions and Pronunciations.': 'The Language the Plugin will use to search for Definitions and Pronunciations.',
Copy file name to clipboardExpand all lines: src/l10n/locale/zh-cn.ts
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,9 @@ export default {
15
15
'Look up': '查询',
16
16
17
17
//settingsTab.ts
18
-
'Dictionary Settings': '词典设置',
18
+
'HackerNews Settings': '词典设置',
19
+
'Refresh Interval': 'Refresh Interval',
20
+
'The time interval in seconds after which the next top story will be fetched. Default and invalid values will be considered as 60 seconds.': 'The time interval in seconds after which the next top story will be fetched. Default and invalid values will be considered as 60 seconds.',
19
21
'Language': '语言',
20
22
'The Language the Plugin will use to search for Definitions and Pronunciations.': '插件会根据该语言来搜索语义以及发音',
.setDesc(t('The time interval in seconds after which the next top story will be fetched. Default and invalid values will be considered as 60 seconds.'))
26
+
.addText(text=>text
27
+
.setPlaceholder('60')
28
+
.setValue(plugin.settings.defaultRefreshInterval)
29
+
.onChange(async(value)=>{
30
+
plugin.settings.defaultRefreshInterval=value;
31
+
awaitthis.save();
32
+
}));
23
33
newSetting(containerEl)
24
34
.setName(t('Language'))
25
35
.setDesc(t('The Language the Plugin will use to search for Definitions and Pronunciations.'))
0 commit comments