Skip to content

Commit 9224fb3

Browse files
committed
Support JSON-formatted locale files
A proposal for changing the locale files from `ini` to `json` has surfaced in the gitea repository. This change makes the giteabot is ready for whichever outcome.
1 parent 8c1568c commit 9224fb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/comments.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ 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/") && (fileName.endsWith(".ini") || fileName.endsWith(".json")) &&
1010
!fileName.endsWith("en-US.ini")
1111
);
1212
if (translationsChanged) {

0 commit comments

Comments
 (0)