Skip to content

Commit 98cd055

Browse files
authored
Support JSON-formatted locale files (#144)
A proposal for changing the locale files from `ini` to `json` has surfaced in the Gitea repository. This change makes sure the giteabot is ready for whichever outcome.
1 parent 8c1568c commit 98cd055

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/comments.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ export const commentIfTranslationsChanged = async (
66
const prFileNamesSet = await fetchPrFileNames(pr.number);
77
const prFileNames = Array.from(prFileNamesSet);
88
const translationsChanged = prFileNames.some((fileName) =>
9-
fileName.startsWith("options/locale/") && fileName.endsWith(".ini") &&
9+
fileName.startsWith("options/locale/") &&
10+
(fileName.endsWith(".ini") || fileName.endsWith(".json")) &&
1011
!fileName.endsWith("en-US.ini")
1112
);
1213
if (translationsChanged) {

0 commit comments

Comments
 (0)