chore: remove some unused locale strings #255

Manually merged
Johann150 merged 1 commit from unused-i18n into main 2022-11-28 18:46:30 +00:00
Owner

I removed some locales that I could not find usages of in the client, backend or service worker. But I'm not sure if I missed a usage so would appreciate someone else checking.

I removed some locales that I could not find usages of in the client, backend or service worker. But I'm not sure if I missed a usage so would appreciate someone else checking.
norm requested changes 2022-11-28 07:19:41 +00:00
norm left a comment
Owner

Other than a few places, it seems fine.

Other than a few places, it seems fine.
@ -994,4 +883,2 @@
contributors: "Main contributors"
allContributors: "All contributors"
source: "Source code"
translation: "Translate FoundKey"
Owner

Wondering if we should re-add a link for translating FoundKey...

Wondering if we should re-add a link for translating FoundKey...
Author
Owner

Mmh yeah didn't think about it, but it was probably just removed because we didn't have weblate set up at that point. Added back in 97233fab69.

Mmh yeah didn't think about it, but it was probably just removed because we didn't have weblate set up at that point. Added back in 97233fab69206d74a8c400f7056139eae0f200f1.
Johann150 marked this conversation as resolved
@ -776,4 +682,2 @@
emailNotification: "Email notifications"
publish: "Publish"
inChannelSearch: "Search in channel"
useReactionPickerForContextMenu: "Open reaction picker on right-click"
Owner

Used here:

<FormSwitch v-model="useReactionPickerForContextMenu" class="_formBlock">{{ i18n.ts.useReactionPickerForContextMenu }}</FormSwitch>

Used here: https://akkoma.dev/FoundKeyGang/FoundKey/src/commit/2f56499445e47e0d7380a6be389b989436eca325/packages/client/src/pages/settings/general.vue#L29
Johann150 marked this conversation as resolved
@ -202,4 +179,0 @@
cpuAndMemory: "CPU and Memory"
network: "Network"
disk: "Disk"
instanceInfo: "Instance Information"
Owner

instanceInfo is used in a few of places:

[norm@mikoto FoundKey]$ rg 'ts\.instanceInfo' packages/
packages/client/src/components/launch-pad.vue
25:                             <div class="text">{{ i18n.ts.instanceInfo }}</div>

packages/client/src/pages/user-info.vue
23:                             <FormLink v-if="user.host" class="_formBlock" :to="`/instance-info/${user.host}`">{{ i18n.ts.instanceInfo }}</FormLink>
49:                                                     <template #key>{{ i18n.ts.instanceInfo }}</template>
53:                                                     <template #key>{{ i18n.ts.instanceInfo }}</template>

packages/client/src/pages/welcome.entrance.a.vue
104:            text: i18n.ts.instanceInfo,

packages/client/src/pages/about.vue
130:    title: i18n.ts.instanceInfo,
`instanceInfo` is used in a few of places: ``` [norm@mikoto FoundKey]$ rg 'ts\.instanceInfo' packages/ packages/client/src/components/launch-pad.vue 25: <div class="text">{{ i18n.ts.instanceInfo }}</div> packages/client/src/pages/user-info.vue 23: <FormLink v-if="user.host" class="_formBlock" :to="`/instance-info/${user.host}`">{{ i18n.ts.instanceInfo }}</FormLink> 49: <template #key>{{ i18n.ts.instanceInfo }}</template> 53: <template #key>{{ i18n.ts.instanceInfo }}</template> packages/client/src/pages/welcome.entrance.a.vue 104: text: i18n.ts.instanceInfo, packages/client/src/pages/about.vue 130: title: i18n.ts.instanceInfo, ```
Johann150 marked this conversation as resolved
@ -52,4 +47,2 @@
sendMessage: "Send a message"
copyUsername: "Copy username"
searchUser: "Search for a user"
reply: "Reply"
Owner

The reply string appears to be used in

The `reply` string appears to be used in https://akkoma.dev/FoundKeyGang/FoundKey/src/commit/2f56499445e47e0d7380a6be389b989436eca325/packages/client/src/components/post-form.vue#L191
Johann150 marked this conversation as resolved
Johann150 force-pushed unused-i18n from dd801327f9 to 2d4bc9c268 2022-11-28 17:41:58 +00:00 Compare
norm approved these changes 2022-11-28 18:36:15 +00:00
Johann150 manually merged commit a6a4ae870d into main 2022-11-28 18:46:30 +00:00
Johann150 deleted branch unused-i18n 2022-11-28 18:46:39 +00:00
Sign in to join this conversation.
No reviewers
No labels
feature
fix
upkeep
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: FoundKeyGang/FoundKey#255
No description provided.