mirror of
https://github.com/whekin/household-bot.git
synced 2026-03-31 21:14:02 +00:00
fix(miniapp): translate Split By and Admin Access fields
This commit is contained in:
@@ -339,6 +339,7 @@ export const dictionary = {
|
||||
saveRentWeightAction: 'Save rent weight',
|
||||
savingRentWeight: 'Saving weight…',
|
||||
promoteAdminAction: 'Promote to admin',
|
||||
promoteAdminLabel: 'Admin access',
|
||||
promotingAdmin: 'Promoting…',
|
||||
residentHouseTitle: 'Household access',
|
||||
residentHouseBody:
|
||||
@@ -696,6 +697,7 @@ export const dictionary = {
|
||||
saveRentWeightAction: 'Сохранить вес аренды',
|
||||
savingRentWeight: 'Сохраняем вес…',
|
||||
promoteAdminAction: 'Сделать админом',
|
||||
promoteAdminLabel: 'Доступ админа',
|
||||
promotingAdmin: 'Повышаем…',
|
||||
residentHouseTitle: 'Доступ к дому',
|
||||
residentHouseBody:
|
||||
|
||||
@@ -817,10 +817,10 @@ export default function LedgerRoute() {
|
||||
/>
|
||||
</Field>
|
||||
<div style={{ 'grid-column': '1 / -1' }}>
|
||||
<Field label="Split By">
|
||||
<Field label={copy().purchaseSplitTitle}>
|
||||
<Select
|
||||
value={newPurchase().splitInputMode}
|
||||
ariaLabel="Split By"
|
||||
ariaLabel={copy().purchaseSplitTitle}
|
||||
options={splitModeOptions()}
|
||||
onChange={(value) =>
|
||||
setNewPurchase((p) => {
|
||||
@@ -944,10 +944,10 @@ export default function LedgerRoute() {
|
||||
/>
|
||||
</Field>
|
||||
<div style={{ 'grid-column': '1 / -1' }}>
|
||||
<Field label="Split By">
|
||||
<Field label={copy().purchaseSplitTitle}>
|
||||
<Select
|
||||
value={draft().splitInputMode}
|
||||
ariaLabel="Split By"
|
||||
ariaLabel={copy().purchaseSplitTitle}
|
||||
options={splitModeOptions()}
|
||||
onChange={(value) =>
|
||||
setPurchaseDraft((d) => {
|
||||
|
||||
@@ -907,7 +907,7 @@ export default function SettingsRoute() {
|
||||
/>
|
||||
</Field>
|
||||
<Show when={!editMemberForm().isAdmin}>
|
||||
<Field label="Admin Access">
|
||||
<Field label={copy().promoteAdminLabel}>
|
||||
<Button
|
||||
variant="secondary"
|
||||
onClick={() => setEditMemberForm((f) => ({ ...f, isAdmin: true }))}
|
||||
|
||||
Reference in New Issue
Block a user