Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Commit 03ddf9f

Browse files
committed
Fixing update notification locale issue, update notification was shown in English for all locales
1 parent 5f40608 commit 03ddf9f

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

src/utils/UpdateNotification.js

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -115,32 +115,6 @@ define(function (require, exports, module) {
115115
locale = locale.substring(0, 2);
116116
}
117117

118-
//AUTOUPDATE_PRERELEASE_BEGIN
119-
// The following code is needed for supporting Auto Update in prerelease,
120-
//and will be removed eventually for stable releases
121-
{
122-
if (locale) {
123-
if(locale.length > 2) {
124-
locale = locale.substring(0, 2);
125-
}
126-
switch(locale) {
127-
case "de":
128-
break;
129-
case "es":
130-
break;
131-
case "fr":
132-
break;
133-
case "ja":
134-
break;
135-
case "en":
136-
default:
137-
locale = "en";
138-
}
139-
return brackets.config.update_info_url.replace("<locale>", locale);
140-
}
141-
}
142-
//AUTOUPDATE_PRERELEASE_END
143-
144118
return brackets.config.update_info_url + '?locale=' + locale;
145119
}
146120

0 commit comments

Comments
 (0)