[READ-ONLY] a fast, modern browser for the npm registry

chore: remove `vacations` from lunaria and compare logic (#1441)

authored by

Joaquín Sánchez and committed by
GitHub
0a2b3957 2f31cc46

+7 -72
-35
lunaria/files/en-GB.json
··· 1111 1111 "p1": "If you encounter an accessibility barrier on {app}, please let us know by opening an issue on our {link}. We take these reports seriously and will do our best to address them.", 1112 1112 "link": "GitHub repository" 1113 1113 } 1114 - }, 1115 - "vacations": { 1116 - "title": "on vacation", 1117 - "meta_description": "The npmx team is recharging. Discord reopens in a week.", 1118 - "heading": "recharging", 1119 - "subtitle": "we've been building npmx at a pace that has cost {some} of us sleep. we don't want that to be the norm! so we are taking a week off. together.", 1120 - "illustration_alt": "a single row of cosy icons", 1121 - "poke_log": "Poke the campfire", 1122 - "what": { 1123 - "title": "what's happening", 1124 - "p1": "discord is closed {dates}.", 1125 - "dates": "February 14 – 21", 1126 - "p2": "all invite links are gone and channels are locked – except {garden}, which stays open for folks who want to keep hanging out.", 1127 - "garden": "#garden" 1128 - }, 1129 - "meantime": { 1130 - "title": "in the meantime", 1131 - "p1": "{site} and {repo} stay open – dig in, file issues, open PRs. we'll get to everything when we're back. just don't expect a fast review. we'll be somewhere near a cosy fireplace.", 1132 - "repo_link": "the repo" 1133 - }, 1134 - "return": { 1135 - "title": "see you soon", 1136 - "p1": "we'll come back recharged and ready for the final push to March 3rd. {social} for updates.", 1137 - "social_link": "follow us on Bluesky", 1138 - "add_to_calendar": "remind me when Discord reopens" 1139 - }, 1140 - "stats": { 1141 - "contributors": "Contributors", 1142 - "commits": "Commits", 1143 - "pr": "PRs Merged", 1144 - "subtitle": { 1145 - "some": "some", 1146 - "all": "all" 1147 - } 1148 - } 1149 1114 } 1150 1115 }
-35
lunaria/files/en-US.json
··· 1111 1111 "p1": "If you encounter an accessibility barrier on {app}, please let us know by opening an issue on our {link}. We take these reports seriously and will do our best to address them.", 1112 1112 "link": "GitHub repository" 1113 1113 } 1114 - }, 1115 - "vacations": { 1116 - "title": "on vacation", 1117 - "meta_description": "The npmx team is recharging. Discord reopens in a week.", 1118 - "heading": "recharging", 1119 - "subtitle": "we've been building npmx at a pace that has cost {some} of us sleep. we don't want that to be the norm! so we are taking a week off. together.", 1120 - "illustration_alt": "a single row of cosy icons", 1121 - "poke_log": "Poke the campfire", 1122 - "what": { 1123 - "title": "what's happening", 1124 - "p1": "discord is closed {dates}.", 1125 - "dates": "February 14 – 21", 1126 - "p2": "all invite links are gone and channels are locked – except {garden}, which stays open for folks who want to keep hanging out.", 1127 - "garden": "#garden" 1128 - }, 1129 - "meantime": { 1130 - "title": "in the meantime", 1131 - "p1": "{site} and {repo} stay open – dig in, file issues, open PRs. we'll get to everything when we're back. just don't expect a fast review. we'll be somewhere near a cosy fireplace.", 1132 - "repo_link": "the repo" 1133 - }, 1134 - "return": { 1135 - "title": "see you soon", 1136 - "p1": "we'll come back recharged and ready for the final push to March 3rd. {social} for updates.", 1137 - "social_link": "follow us on Bluesky", 1138 - "add_to_calendar": "remind me when Discord reopens" 1139 - }, 1140 - "stats": { 1141 - "contributors": "Contributors", 1142 - "commits": "Commits", 1143 - "pr": "PRs Merged", 1144 - "subtitle": { 1145 - "some": "some", 1146 - "all": "all" 1147 - } 1148 - } 1149 1114 } 1150 1115 }
+4 -2
lunaria/prepare-json-files.ts
··· 66 66 67 67 async function loadLocaleSourceJson<T = unknown>(name: string): Promise<T> { 68 68 const rawJson = JSON.parse(await fs.readFile(path.resolve(`${localesFolder}/${name}`), 'utf8')) 69 - // Exclude $schema since it isn't useful in generated files and the relative path 69 + // Exclude $schema since it isn't useful in generated files and the relative 70 + 71 + // TODO: removing vacations entry key for temporal recharging page 70 72 // would be wrong anyway 71 - const { $schema: _, ...rest } = rawJson 73 + const { $schema: _, vacations: __, ...rest } = rawJson 72 74 return rest 73 75 } 74 76
+3
scripts/compare-translations.ts
··· 385 385 lang: 'en', 386 386 }) 387 387 388 + // TODO: removing vacations entry key for temporal recharging page 389 + delete referenceContent.vacations 390 + 388 391 // $schema is a JSON Schema reference, not a translation key 389 392 delete referenceContent.$schema 390 393