Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add unused translations check to CI #938

Closed
Closed
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
ca58471
feat: add unused translations check to CI
devin-ai-integration[bot] Jan 28, 2025
fdaadb0
refactor: remove unused translation keys and update script to use asy…
devin-ai-integration[bot] Jan 28, 2025
3977c63
refactor: remove unused translation keys
devin-ai-integration[bot] Jan 29, 2025
50a5215
refactor: remove unused translation keys and update script
devin-ai-integration[bot] Jan 29, 2025
9568b89
refactor: remove all unused translation keys
devin-ai-integration[bot] Jan 29, 2025
e8339f8
fix: restore required translation keys for tests
devin-ai-integration[bot] Jan 29, 2025
d99ebc2
fix: update register.json with all supported address placeholders
devin-ai-integration[bot] Jan 29, 2025
29a73af
fix: update steps.json to remove duplicate translation keys
devin-ai-integration[bot] Jan 29, 2025
336f90b
fix: remove empty placeholder object from steps.json
devin-ai-integration[bot] Jan 29, 2025
60d71bb
fix: improve unused translations detection to handle duplicate keys
devin-ai-integration[bot] Jan 29, 2025
5a317b4
fix: improve unused translations detection to handle empty files
devin-ai-integration[bot] Jan 29, 2025
a47472c
fix: remove unused address placeholder translations
devin-ai-integration[bot] Jan 29, 2025
15268e8
fix: restore address placeholders required by tests
devin-ai-integration[bot] Jan 29, 2025
d4f2619
fix: restore address label required by tests
devin-ai-integration[bot] Jan 29, 2025
8cfd027
refactor: remove hardcoded translation keys from removeUnusedTranslat…
devin-ai-integration[bot] Jan 29, 2025
b403d61
feat: improve error messaging for unused translation keys
devin-ai-integration[bot] Jan 29, 2025
7f23ab5
fix: improve key removal logic in removeUnusedTranslations script
devin-ai-integration[bot] Jan 29, 2025
bbadbc0
fix: remove unused translation key profile.options.groups.address.label
devin-ai-integration[bot] Jan 29, 2025
7277bd8
fix: only flag leaf nodes as unused translation keys
devin-ai-integration[bot] Jan 29, 2025
d9acc85
feat: add unused translations check to build process
devin-ai-integration[bot] Jan 29, 2025
eb25a1f
fix: restore translation files and selectively remove unused keys
devin-ai-integration[bot] Jan 29, 2025
854a1ac
fix: remove all unused translation keys
devin-ai-integration[bot] Jan 29, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
refactor: remove unused translation keys
Co-Authored-By: Leon Talbert <[email protected]>
  • Loading branch information
devin-ai-integration[bot] and LeonmanRolls committed Jan 29, 2025
commit 3977c63b3f4af269ed7ddcb61f9db982f12b9e79
1 change: 1 addition & 0 deletions public/locales/en/accounts.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
1 change: 1 addition & 0 deletions public/locales/en/add.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
13 changes: 1 addition & 12 deletions public/locales/en/address.json
Original file line number Diff line number Diff line change
@@ -3,16 +3,5 @@
"title": "{{address}} on ENS",
"description": "All names for {{address}} on the Ethereum Name Service"
},
"addressDetails": "Address Details",
"nameCount": "{{count}} names",
"filter": "Filter",
"view": "View",
"noProfile": {
"title": "No primary name set",
"message": "This wallet needs to set a primary name to create a profile"
},
"noResults": "No names found",
"errors": {
"names": "Could not find address"
}
"nameCount": "{{count}} names"
}
1 change: 1 addition & 0 deletions public/locales/en/addresses.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
220 changes: 7 additions & 213 deletions public/locales/en/common.json
Original file line number Diff line number Diff line change
@@ -7,151 +7,46 @@
"etherscan": "Etherscan",
"action": {
"cancel": "Cancel",
"change": "Change",
"upload": "Upload",
"close": "Close",
"save": "Save",
"edit": "Edit",
"view": "View",
"clear": "Clear",
"update": "Update",
"learnMore": "Learn more",
"send": "Send",
"next": "Next",
"add": "Add",
"set": "Set",
"search": "Search",
"back": "Back",
"continue": "Continue",
"confirm": "Confirm",
"remove": "Remove",
"sign": "Sign",
"reset": "Reset",
"restart": "Restart",
"transfer": "Transfer",
"tryAgain": "Try Again",
"done": "Done",
"burnSelected": "Burn Selected",
"extend": "Extend",
"delete": "Delete",
"sort": "Sort",
"check": "Check",
"claim": "Claim",
"remindMe": "Remind Me",
"begin": "Begin",
"finish": "Finish",
"skip": "Skip",
"changeNetwork": "Change Network",
"understand": "I understand",
"feedback": "Feedback",
"enterEmail": "Enter your email",
"migrate": "Migrate",
"setToSelf": "Set to self",
"editRoles": "Edit roles",
"setReminder": "Set reminder",
"import": "Import",
"connect": "Connect",
"goToProfile": "Go to profile"
},
"unit": {
"years_one": "{{count}} year",
"years_other": "{{count}} years",
"months_one": "{{count}} month",
"months_other": "{{count}} months",
"days_one": "{{count}} day",
"days_other": "{{count}} days",
"hours_one": "{{count}} hour",
"hours_other": "{{count}} hours",
"minutes_one": "{{count}} minute",
"minutes_other": "{{count}} minutes",
"invalid_date": "Invalid Date",
"yrs_one": "{{count}} yr",
"yrs_other": "{{count}} yrs",
"gas": "{{value}} gas",
"selected": "{{count}} selected",
"perPage": "{{count}} per page"
"understand": "I understand"
},
"unit": {},
"navigation": {
"home": "Home",
"names": "My Names",
"favourites": "Favourites",
"settings": "Settings",
"governance": "Governance",
"community": "Community",
"developers": "Developers",
"support": "Support",
"bounty": "Bug Bounty",
"terms": "Terms of Use",
"privacy": "Privacy Policy",
"back": "Back",
"oldApp": "Old ENS App",
"language": "Language",
"currency": "Currency",
"ipfsApp": "IPFS ENS App",
"feedback": "Feedback",
"syncMessage": "Syncing with the network. Changes from your transaction may not be visible yet."
},
"wallet": {
"myProfile": "Profile",
"disconnect": "Disconnect",
"connect": "Connect",
"noPrimaryName": "No Primary Name",
"viewProfile": "View Profile",
"viewDetails": "View Details",
"register": "Register"
"viewDetails": "View Details"
},
"name": {
"registered": "Registered",
"expires": "Expires",
"graceEnd": "Grace end",
"noExpiry": "No expiry",
"expiry": "Expiry",
"parent": "Parent",
"noParent": "No parent",
"registrant": "Registrant",
"controller": "Controller",
"dnsOwner": "DNS Owner",
"owner": "Owner",
"notOwned": "Not Owned",
"manager": "Manager",
"all": "All Names",
"copy": "Copy name",
"yourPrimaryName": "Your primary name",
"expiresInYears_one": "Expires in {{count}} year",
"expiresInYears_other": "Expires in {{count}} years",
"expiresInMonths_one": "Expires in {{count}} month",
"expiresInMonths_other": "Expires in {{count}} months",
"expiresInDays_one": "Expires in {{count}} day",
"expiresInDays_other": "Expires in {{count}} days",
"expiresInHours_one": "Expires in {{count}} hour",
"expiresInHours_other": "Expires in {{count}} hours",
"expiresInHours_zero": "Expires in less than an hour",
"expiredInHours_one": "Expired {{count}} hour ago",
"expiredInHours_other": "Expired {{count}} hours ago",
"expiredInHours_zero": "Expired less than an hour ago",
"expiredInDays_one": "Expired {{count}} day ago",
"expiredInDays_other": "Expired {{count}} days ago",
"expiredInMonths_one": "Expired {{count}} month ago",
"expiredInMonths_other": "Expired {{count}} months ago",
"expiredInYears_one": "Expired {{count}} year ago",
"expiredInYears_other": "Expired {{count}} years ago",
"gracePeriod": {
"expiresInYears_one": "Grace period expires in {{count}} year",
"expiresInYears_other": "Grace period expires in {{count}} years",
"expiresInMonths_one": "Grace period expires in {{count}} month",
"expiresInMonths_other": "Grace period expires in {{count}} months",
"expiresInDays_one": "Grace period expires in {{count}} day",
"expiresInDays_other": "Grace period expires in {{count}} days",
"expiresInHours_one": "Grace period expires in {{count}} hour",
"expiresInHours_other": "Grace period expires in {{count}} hours",
"expiresInHours_zero": "Grace period expires in less than an hour"
},
"extend": "Extend",
"send": "Send",
"transfer": "Transfer",
"sendManager": "Send Manager",
"sendOwner": "Send Owner",
"renew": "Renew {{name}}"
"yourPrimaryName": "Your primary name"
},
"address": {
"label": "Address",
@@ -161,11 +56,7 @@
"records": {
"label": "Records"
},
"sortTypes": {
"expiryDate": "Expiry date",
"labelName": "Name",
"createdAt": "Creation date"
},

"errors": {
"noResults": "No results found",
"emailRequired": "Email is required",
@@ -188,79 +79,18 @@
}
},
"transaction": {
"description": {
"setName": "Set name",
"setRecords": "Set records",
"test": "Test transaction",
"addSuccess": "Add success",
"sendName": "Send name",
"migrateProfile": "Migrate profile",
"migrateProfileWithReset": "Migrate profile",
"migrateProfileWithSync": "Migrate and update profile",
"migrateProfileWithEthAddress": "Migrate and update ETH address",
"wrapName": "Wrap name",
"updateResolver": "Update resolver",
"updateProfile": "Update profile",
"setPrimaryName": "Set primary name",
"resetPrimaryName": "Remove primary name",
"updateEthAddress": "Update ETH address",
"testSendName": "Send name",
"burnFuses": "Burn permissions",
"createSubname": "Create subname",
"deleteSubname": "Delete subname",
"extendNames": "Extend names",
"approveDnsRegistrar": "Approve DNS registrar",
"claimDnsName": "Claim DNS name",
"importDnsName": "Import DNS name",
"commitName": "Start timer",
"registerName": "Register name",
"approveNameWrapper": "Approve NameWrapper",
"clearRecords": "Clear records",
"updateRecords": "Update records",
"updateRecord": "Update record",
"removeRecord": "Remove record",
"resetProfileWithRecords": "Reset profile with records",
"transferName": "Transfer name",
"transferSubname": "Transfer subname",
"changePermissions": "Change permissions",
"syncManager": "Sync manager",
"updateProfileRecords": "Update profile",
"resetProfile": "Reset profile",
"unwrapName": "Unwrap name",
"updateVerificationRecord": "Update verification record",
"removeVerificationRecord": "Remove verification record"
},
"info": {
"sendName": "Set the controller and registrant of the name",
"migrateProfile": "Set existing records on new resolver",
"migrateProfileWithReset": "Set existing records on new resolver",
"migrateProfileWithSync": "Set existing records on new resolver",
"migrateProfileWithEthAddress": "Set existing records and eth address on new resolver",
"wrapName": "Wrap the name",
"updateResolver": "Change resolver to",
"updateProfile": "Update records on existing resolver",
"setPrimaryName": "Set the primary name for your address",
"updateEthAddress": "Update ETH address to this address",
"updateEthAddressOnLatestResolver": "Update ETH address on latest resolver",
"testSendName": "Set the controller and registrant of the name",
"createSubname": "Create a new subname on the name",
"burnFuses": "Burn the chosen permissions until name expiry",
"commitName": "Start timer to register name",
"approveNameWrapper": "Approve the NameWrapper to manage your names",
"fuses": {
"revoke": "Revoke",
"grant": "Grant",
"setExpiry": "Set expiry",
"PARENT_CANNOT_CONTROL": "Give up parent control",
"CAN_EXTEND_EXPIRY": "Extend expiry",
"CANNOT_UNWRAP": "Unwrap this name",
"CANNOT_CREATE_SUBDOMAIN": "Create subdomains",
"CANNOT_SET_RESOLVER": "Set resolver",
"CANNOT_SET_TTL": "Set TTL",
"CANNOT_TRANSFER": "Send this name",
"CANNOT_BURN_FUSES": "Change permissions",
"CANNOT_APPROVE": "Change renewal manager"
}
"approveNameWrapper": "Approve the NameWrapper to manage your names"
},
"itemLabel": {
"name": "Name",
@@ -357,56 +187,20 @@
"notOwned": "Not Owned",
"notImported": "Not Imported",
"short": "Too Short",
"default": "Invalid",
"invalid": "Invalid",
"unsupportedTLD": "Not Supported",
"imported": "Imported",
"owned": "Owned",
"offChain": "View"
"invalid": "Invalid"
}
},
"selectableInput": {
"add": "Add",
"placeholder": "Select an option",
"empty": "No options found"
},
"testnetFaucet": {
"explanation": "Each address on {{ testnet }} can claim {{ amount }} {{ ticker }} to test out the ENS manager app, as well as any other testnet usage.",
"note": "It may take a few minutes to show up in your wallet."
},
"roles": {
"owner": {
"title": "owner",
"description": "The address that owns this name."
},
"dns-owner": {
"title": "DNS owner",
"description": "The address that owns this name."
},
"parent-owner": {
"title": "Parent owner",
"description": "The address that owns the parent of this name."
},
"manager": {
"title": "manager",
"description": "An address or contract that can change the profile, settings, and profile managers."
},
"profile-editor": {
"title": "Profile editor",
"description": "An address that can change the profile."
},
"eth-record": {
"title": "ETH record",
"description": "The address that this name points to."
}
},
"dns": {
"refresh": "Refresh DNS"
},
"calendar": {
"pick_by_years": "Pick by years",
"pick_by_date": "Pick by date"
},
"verification": {
"verifiedBy": "Verified by {{ issuer }}",
"personhoodVerified": "Personhood verified",
1 change: 1 addition & 0 deletions public/locales/en/complete.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
1 change: 1 addition & 0 deletions public/locales/en/details.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
Loading
Loading