[ACS-12385] Fix en-AU collision (#5330)

* [ACS-12385] Fix en-AU collision

* [ACS-12385] remove comments

* [ACS-12385] Diff by SHA instead of a remote-tracking branch name
This commit is contained in:
Shivangi Shree
2026-08-05 15:34:27 +05:30
committed by GitHub
parent 2517f90b1f
commit 84f3a639e8
3 changed files with 52 additions and 22 deletions
+24
View File
@@ -79,6 +79,30 @@ jobs:
echo "only-e2e-changes=true" >> $GITHUB_OUTPUT echo "only-e2e-changes=true" >> $GITHUB_OUTPUT
fi fi
protect-en-source:
name: 'Validate / Protect English source (en.json)'
if: ${{ github.event_name == 'pull_request' && github.head_ref == 'automated-translations-update' }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Fail if automated Crowdin PR modifies en.json
env:
BASE_SHA: ${{ github.event.pull_request.base.sha }}
run: |
git fetch --no-tags --depth=1 origin "$BASE_SHA"
CHANGED_EN=$(git diff --name-only "$BASE_SHA"...HEAD | grep -E '(^|/)i18n/en\.json$' || true)
if [ -n "$CHANGED_EN" ]; then
echo "::error::Automated Crowdin PR must not modify the English source (en.json). Offending file(s):"
echo "$CHANGED_EN"
echo "This usually means a Crowdin target language (e.g. en-AU) collides with the 'en' two_letters_code. Fix crowdin.yml languages_mapping instead of merging this change."
exit 1
fi
echo "OK: no en.json source file modified by the automated Crowdin PR."
build: build:
name: 'build' name: 'build'
runs-on: ubuntu-latest runs-on: ubuntu-latest
+7 -1
View File
@@ -8,6 +8,12 @@
"source": "/**/**/i18n/en.json", "source": "/**/**/i18n/en.json",
"translation": "/%original_path%/%two_letters_code%.%file_extension%", "translation": "/%original_path%/%two_letters_code%.%file_extension%",
"export_only_approved": "true", "export_only_approved": "true",
"update_option": "update_without_changes" "update_option": "update_without_changes",
"languages_mapping": {
"two_letters_code": {
"en-AU": "en-AU"
}
}
} }
] ]
+21 -21
View File
@@ -10,12 +10,12 @@
"NAME": "Name", "NAME": "Name",
"VERSION": "Version", "VERSION": "Version",
"VENDOR": "Vendor", "VENDOR": "Vendor",
"LICENSE": "Licence", "LICENSE": "License",
"RUNTIME": "Runtime", "RUNTIME": "Runtime",
"DESCRIPTION": "Description" "DESCRIPTION": "Description"
}, },
"LICENSE": { "LICENSE": {
"TITLE": "Licence", "TITLE": "License",
"PROPERTY": "Property", "PROPERTY": "Property",
"VALUE": "Value" "VALUE": "Value"
}, },
@@ -134,8 +134,8 @@
"TEXT": "Join libraries to upload, view, and share files." "TEXT": "Join libraries to upload, view, and share files."
}, },
"FAVORITE_LIBRARIES": { "FAVORITE_LIBRARIES": {
"TITLE": "No Favourite Libraries", "TITLE": "No Favorite Libraries",
"TEXT": "Favourite a library that you want to find easily later." "TEXT": "Favorite a library that you want to find easily later."
}, },
"ALL_LIBRARIES": { "ALL_LIBRARIES": {
"TITLE": "No library found", "TITLE": "No library found",
@@ -151,10 +151,10 @@
} }
}, },
"FAVORITE_LIBRARIES": { "FAVORITE_LIBRARIES": {
"TITLE": "Favourite Libraries", "TITLE": "Favorite Libraries",
"SIDENAV_LINK": { "SIDENAV_LINK": {
"LABEL": "Favourite Libraries", "LABEL": "Favorite Libraries",
"TOOLTIP": "Access my favourite libraries" "TOOLTIP": "Access my favorite libraries"
} }
}, },
"ALL_LIBRARIES": { "ALL_LIBRARIES": {
@@ -194,14 +194,14 @@
} }
}, },
"FAVORITES": { "FAVORITES": {
"TITLE": "Favourites", "TITLE": "Favorites",
"SIDENAV_LINK": { "SIDENAV_LINK": {
"LABEL": "Favourites", "LABEL": "Favorites",
"TOOLTIP": "View your favourite files and folders" "TOOLTIP": "View your favorite files and folders"
}, },
"EMPTY_STATE": { "EMPTY_STATE": {
"TITLE": "No favourite files or folders", "TITLE": "No favorite files or folders",
"TEXT": "Favourite items that you want to easily find later." "TEXT": "Favorite items that you want to easily find later."
} }
}, },
"TRASHCAN": { "TRASHCAN": {
@@ -301,9 +301,9 @@
"UNDO": "Undo", "UNDO": "Undo",
"PERMISSIONS": "Permissions", "PERMISSIONS": "Permissions",
"RESTORE": "Restore", "RESTORE": "Restore",
"FAVORITE": "Favourite", "FAVORITE": "Favorite",
"ADD_FAVORITE": "Add Favourite", "ADD_FAVORITE": "Add Favorite",
"REMOVE_FAVORITE": "Remove Favourite", "REMOVE_FAVORITE": "Remove Favorite",
"UNSHARE": "Unshare", "UNSHARE": "Unshare",
"DETAILS": "View Details", "DETAILS": "View Details",
"VERSIONS": "Manage Versions", "VERSIONS": "Manage Versions",
@@ -458,11 +458,11 @@
}, },
"LIBRARY_DELETED": "Library deleted", "LIBRARY_DELETED": "Library deleted",
"LEFT_LIBRARY": "You have left the library", "LEFT_LIBRARY": "You have left the library",
"FAVORITE_NODE_ADDED": "Added {{ name }} to favourites", "FAVORITE_NODE_ADDED": "Added {{ name }} to favorites",
"FAVORITE_NODES_ADDED": "Added {{ number }} items to favourites", "FAVORITE_NODES_ADDED": "Added {{ number }} items to favorites",
"FAVORITE_NODE_REMOVED": "Removed {{ name }} from favourites", "FAVORITE_NODE_REMOVED": "Removed {{ name }} from favorites",
"FAVORITE_NODES_REMOVED": "Removed {{ number }} items from favourites", "FAVORITE_NODES_REMOVED": "Removed {{ number }} items from favorites",
"FAVORITE_NODE_NOT_FOUND": "{{ name }} is not favourite" "FAVORITE_NODE_NOT_FOUND": "{{ name }} is not favorite"
} }
}, },
"CONTENT_METADATA": { "CONTENT_METADATA": {
@@ -517,7 +517,7 @@
"CREATED": "Created", "CREATED": "Created",
"MODIFIED": "Modified", "MODIFIED": "Modified",
"DONE": "Done", "DONE": "Done",
"ERROR": "Something went wrong, please close this dialogue and try again" "ERROR": "Something went wrong, please close this dialog and try again"
}, },
"ADDITIONAL_REFERENCES_DIALOG": { "ADDITIONAL_REFERENCES_DIALOG": {
"TITLE": "Additional Reference Locations", "TITLE": "Additional Reference Locations",