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