@@ -18,6 +18,7 @@ const translations: { [lang: string]: { [msgid: string]: string } } = {
18
18
"duplicated_pin_name" : "This pin widget has expired (due to the output of a new pin widget with the same name)." ,
19
19
"browse_file" : "Browse" ,
20
20
"duplicated_scope_name" : "Error: The name of this scope is duplicated with the previous one!" ,
21
+ "file_uploading" : "File Uploading..." ,
21
22
} ,
22
23
"zh" : {
23
24
"disconnected_with_server" : "与服务器连接已断开,请刷新页面重新操作" ,
@@ -31,6 +32,7 @@ const translations: { [lang: string]: { [msgid: string]: string } } = {
31
32
"duplicated_pin_name" : "该 Pin widget 已失效(由于输出了新的同名 pin widget)" ,
32
33
"browse_file" : "浏览文件" ,
33
34
"duplicated_scope_name" : "错误: 此scope与已有scope重复!" ,
35
+ "file_uploading" : "文件上传中" ,
34
36
} ,
35
37
"ru" : {
36
38
"disconnected_with_server" : "Соединение с сервером потеряно, пожалуйста перезагрузите страницу" ,
@@ -43,6 +45,7 @@ const translations: { [lang: string]: { [msgid: string]: string } } = {
43
45
"cancel" : "Отмена" ,
44
46
"duplicated_pin_name" : "Этот закреп виджет устарел (виджет с таким же именем был выведен)." ,
45
47
"browse_file" : "Обзор" ,
48
+
46
49
} ,
47
50
"de" : {
48
51
"disconnected_with_server" : "Verbindung zum Server unterbrochen. Bitte laden Sie die Seite neu." ,
@@ -94,7 +97,7 @@ function strfmt(fmt: string) {
94
97
let args = arguments ;
95
98
96
99
return fmt
97
- // put space after double % to prevent placeholder replacement of such matches
100
+ // put space after double % to prevent placeholder replacement of such matches
98
101
. replace ( / % % / g, '%% ' )
99
102
// replace placeholders
100
103
. replace ( / % ( \d + ) / g, function ( str , p1 ) {
@@ -104,10 +107,10 @@ function strfmt(fmt: string) {
104
107
. replace ( / % % / g, '%' )
105
108
}
106
109
107
- export function t ( msgid : string , ...args :string [ ] ) : string {
110
+ export function t ( msgid : string , ...args : string [ ] ) : string {
108
111
let fmt = null ;
109
112
for ( let lang of [ 'custom' , userLangCode , langPrefix , 'en' ] ) {
110
- if ( translations [ lang ] && translations [ lang ] [ msgid ] ) {
113
+ if ( translations [ lang ] && translations [ lang ] [ msgid ] ) {
111
114
fmt = translations [ lang ] [ msgid ] ;
112
115
break ;
113
116
}
0 commit comments