Skip to content

Commit 77fee34

Browse files
committed
fix(api): pins toLocaleString locale to en-US in notification strings
1 parent a5071fe commit 77fee34

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/app/services/api.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1103,13 +1103,13 @@ async function graphqlLightCombinedSearch(
11031103

11041104
if (issues.length >= SEARCH_RESULT_CAP) {
11051105
console.warn(`[api] Issue search results capped at ${SEARCH_RESULT_CAP}`);
1106-
pushNotification("search/issues", `Issue search results capped at ${SEARCH_RESULT_CAP.toLocaleString()} — some items are hidden`, "warning");
1106+
pushNotification("search/issues", `Issue search results capped at ${SEARCH_RESULT_CAP.toLocaleString("en-US")} — some items are hidden`, "warning");
11071107
issues.splice(SEARCH_RESULT_CAP);
11081108
}
11091109

11101110
if (prMap.size >= SEARCH_RESULT_CAP) {
11111111
console.warn(`[api] PR search results capped at ${SEARCH_RESULT_CAP}`);
1112-
pushNotification("search/prs", `PR search results capped at ${SEARCH_RESULT_CAP.toLocaleString()} — some items are hidden`, "warning");
1112+
pushNotification("search/prs", `PR search results capped at ${SEARCH_RESULT_CAP.toLocaleString("en-US")} — some items are hidden`, "warning");
11131113
}
11141114

11151115
const pullRequests = [...prMap.values()];
@@ -1209,13 +1209,13 @@ async function graphqlUnfilteredSearch(
12091209

12101210
if (issues.length >= SEARCH_RESULT_CAP) {
12111211
console.warn(`[api] Unfiltered issue results capped at ${SEARCH_RESULT_CAP}`);
1212-
pushNotification("search/unfiltered-issues", `Monitored repo issue results capped at ${SEARCH_RESULT_CAP.toLocaleString()} — some items are hidden`, "warning");
1212+
pushNotification("search/unfiltered-issues", `Monitored repo issue results capped at ${SEARCH_RESULT_CAP.toLocaleString("en-US")} — some items are hidden`, "warning");
12131213
issues.splice(SEARCH_RESULT_CAP);
12141214
}
12151215

12161216
if (prMap.size >= SEARCH_RESULT_CAP) {
12171217
console.warn(`[api] Unfiltered PR results capped at ${SEARCH_RESULT_CAP}`);
1218-
pushNotification("search/unfiltered-prs", `Monitored repo PR results capped at ${SEARCH_RESULT_CAP.toLocaleString()} — some items are hidden`, "warning");
1218+
pushNotification("search/unfiltered-prs", `Monitored repo PR results capped at ${SEARCH_RESULT_CAP.toLocaleString("en-US")} — some items are hidden`, "warning");
12191219
}
12201220

12211221
const pullRequests = [...prMap.values()];
@@ -1617,7 +1617,7 @@ async function graphqlSearchIssues(
16171617

16181618
if (issues.length >= SEARCH_RESULT_CAP) {
16191619
console.warn(`[api] Issue search results capped at ${SEARCH_RESULT_CAP}`);
1620-
pushNotification("search/issues", `Issue search results capped at ${SEARCH_RESULT_CAP.toLocaleString()} — some items are hidden`, "warning");
1620+
pushNotification("search/issues", `Issue search results capped at ${SEARCH_RESULT_CAP.toLocaleString("en-US")} — some items are hidden`, "warning");
16211621
issues.splice(SEARCH_RESULT_CAP);
16221622
}
16231623

@@ -1757,7 +1757,7 @@ async function graphqlSearchPRs(
17571757

17581758
if (prMap.size >= SEARCH_RESULT_CAP) {
17591759
console.warn(`[api] PR search results capped at ${SEARCH_RESULT_CAP}`);
1760-
pushNotification("search/prs", `PR search results capped at ${SEARCH_RESULT_CAP.toLocaleString()} — some items are hidden`, "warning");
1760+
pushNotification("search/prs", `PR search results capped at ${SEARCH_RESULT_CAP.toLocaleString("en-US")} — some items are hidden`, "warning");
17611761
}
17621762

17631763
// Fork PR fallback: for PRs with null checkStatus where head repo owner differs from base

0 commit comments

Comments
 (0)