Skip to content

Commit eb98fa8

Browse files
Copilothotlong
andcommitted
feat: userActions drives toolbar visibility + AddRecord button with position support
- Gate addRecord button with userActions.addRecordForm !== false - Support addRecord.position (top/bottom) for button placement - Use i18n key list.addRecord for button label - Add addRecord i18n key to all 10 locale files - Add 3 new unit tests for addRecordForm and position Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent 7d94e68 commit eb98fa8

12 files changed

Lines changed: 76 additions & 3 deletions

File tree

packages/i18n/src/locales/ar.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ const ar = {
101101
list: {
102102
recordCount: '{{count}} سجلات',
103103
recordCountOne: '{{count}} سجل',
104+
addRecord: 'إضافة سجل',
104105
},
105106
kanban: {
106107
addCard: 'إضافة بطاقة',

packages/i18n/src/locales/de.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ const de = {
100100
list: {
101101
recordCount: '{{count}} Datensätze',
102102
recordCountOne: '{{count}} Datensatz',
103+
addRecord: 'Datensatz hinzufügen',
103104
},
104105
kanban: {
105106
addCard: 'Karte hinzufügen',

packages/i18n/src/locales/en.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ const en = {
100100
list: {
101101
recordCount: '{{count}} records',
102102
recordCountOne: '{{count}} record',
103+
addRecord: 'Add record',
103104
},
104105
kanban: {
105106
addCard: 'Add card',

packages/i18n/src/locales/es.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ const es = {
100100
list: {
101101
recordCount: '{{count}} registros',
102102
recordCountOne: '{{count}} registro',
103+
addRecord: 'Agregar registro',
103104
},
104105
kanban: {
105106
addCard: 'Añadir tarjeta',

packages/i18n/src/locales/fr.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ const fr = {
100100
list: {
101101
recordCount: '{{count}} enregistrements',
102102
recordCountOne: '{{count}} enregistrement',
103+
addRecord: 'Ajouter un enregistrement',
103104
},
104105
kanban: {
105106
addCard: 'Ajouter une carte',

packages/i18n/src/locales/ja.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ const ja = {
100100
list: {
101101
recordCount: '{{count}} 件のレコード',
102102
recordCountOne: '{{count}} 件のレコード',
103+
addRecord: 'レコードを追加',
103104
},
104105
kanban: {
105106
addCard: 'カードを追加',

packages/i18n/src/locales/ko.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ const ko = {
100100
list: {
101101
recordCount: '{{count}}개 레코드',
102102
recordCountOne: '{{count}}개 레코드',
103+
addRecord: '레코드 추가',
103104
},
104105
kanban: {
105106
addCard: '카드 추가',

packages/i18n/src/locales/pt.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ const pt = {
100100
list: {
101101
recordCount: '{{count}} registros',
102102
recordCountOne: '{{count}} registro',
103+
addRecord: 'Adicionar registro',
103104
},
104105
kanban: {
105106
addCard: 'Adicionar cartão',

packages/i18n/src/locales/ru.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ const ru = {
100100
list: {
101101
recordCount: '{{count}} записей',
102102
recordCountOne: '{{count}} запись',
103+
addRecord: 'Добавить запись',
103104
},
104105
kanban: {
105106
addCard: 'Добавить карточку',

packages/i18n/src/locales/zh.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ const zh = {
100100
list: {
101101
recordCount: '{{count}} 条记录',
102102
recordCountOne: '{{count}} 条记录',
103+
addRecord: '添加记录',
103104
},
104105
kanban: {
105106
addCard: '添加卡片',

0 commit comments

Comments
 (0)