Skip to content

Commit 22f7c73

Browse files
[update] migration before release
1 parent b8cc542 commit 22f7c73

File tree

1 file changed

+164
-3
lines changed

1 file changed

+164
-3
lines changed

docs/news/migration.md

Lines changed: 164 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ description: You can learn about the Migration to Newer Versions in the document
66

77
# Migration to newer versions
88

9-
## 1.1 -> 1.2 (Inprogress)
9+
## 1.1 -> 1.2
1010

1111
### Api
1212

@@ -18,11 +18,15 @@ description: You can learn about the Migration to Newer Versions in the document
1818

1919
~~~jsx {} title="Before v1.2"
2020
menu: true,
21+
//or
22+
menu: { show: true }
2123
// other parameters
2224
~~~
2325

24-
~~~jsx {3-12} title="From v1.2"
25-
menu: { // or menu: true
26+
~~~jsx {5-14} title="From v1.2"
27+
menu: true,
28+
// or
29+
menu: {
2630
show: true,
2731
items: ({ card, store }) => {
2832
if(card.id === 1){
@@ -304,6 +308,163 @@ api.getStores();
304308
}*/
305309
~~~
306310

311+
### Localization
312+
313+
<details>
314+
<summary>Before v1.2</summary>
315+
316+
~~~jsx {}
317+
const days = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"];
318+
const months = [
319+
"January",
320+
"February",
321+
"March",
322+
"April",
323+
"May",
324+
"June",
325+
"July",
326+
"August",
327+
"September",
328+
"October",
329+
"November",
330+
"December"
331+
];
332+
const monthsShort = [
333+
"Jan",
334+
"Feb",
335+
"Mar",
336+
"Apr",
337+
"May",
338+
"Jun",
339+
"Jul",
340+
"Aug",
341+
"Sep",
342+
"Oct",
343+
"Nov",
344+
"Dec"
345+
];
346+
const wx = {
347+
Today: "Today",
348+
Clear: "Clear",
349+
Close: "Close"
350+
};
351+
const en = {
352+
lang: "en",
353+
__dates: {
354+
months,
355+
monthsShort,
356+
days
357+
},
358+
wx,
359+
kanban: {
360+
Save: "Save",
361+
Close: "Close",
362+
Delete: "Delete",
363+
Name: "Name",
364+
Description: "Description",
365+
Type: "Type",
366+
"Start date": "Start date",
367+
"End date": "End date",
368+
Result: "Result",
369+
"No results": "No results",
370+
Search: "Search",
371+
"Search in": "Search in",
372+
"Add new row": "Add new row",
373+
"Add new column": "Add new column",
374+
"Add new card": "Add new card",
375+
"Edit card": "Edit card",
376+
Edit: "Edit",
377+
Everywhere: "Everywhere",
378+
Label: "Label",
379+
Status: "Status",
380+
Color: "Color",
381+
Date: "Date",
382+
Untitled: "Untitled",
383+
Rename: "Rename"
384+
}
385+
};
386+
~~~
387+
</details>
388+
389+
<details>
390+
<summary>From v1.2</summary>
391+
392+
~~~jsx {}
393+
const en = {
394+
kanban: { // translations of the Kanabn labels
395+
"Save": "Save",
396+
"Close": "Close",
397+
"Delete": "Delete",
398+
"Name": "Name",
399+
"Description": "Description",
400+
"Type": "Type",
401+
"Start date": "Start date",
402+
"End date": "End date",
403+
"Result": "Result",
404+
"No results": "No results",
405+
"Search": "Search",
406+
"Search in": "Search in",
407+
"Add new row": "Add new row",
408+
"Add new column": "Add new column",
409+
"Add new card": "Add new card",
410+
"Edit card": "Edit card",
411+
"Edit": "Edit",
412+
"Everywhere": "Everywhere",
413+
"Label": "Label",
414+
"Status": "Status",
415+
"Color": "Color",
416+
"Date": "Date",
417+
"Untitled": "Untitled",
418+
"Rename": "Rename",
419+
"Move up": "Move up",
420+
"Move down": "Move down",
421+
"Move left": "Move left",
422+
"Move right": "Move right",
423+
"Sort": "Sort",
424+
"Label (a-z)": "Label (a-z)",
425+
"Label (z-a)": "Label (z-a)",
426+
"Description (a-z)": "Description (a-z)",
427+
"Description (z-a)": "Description (z-a)"
428+
},
429+
calendar: { // translations and settings of the calendar
430+
monthFull: [
431+
"January", "February", "March", "April",
432+
"May", "June", "July", "August",
433+
"September", "October", "November", "December"
434+
],
435+
monthShort: [
436+
"Jan", "Feb", "Mar", "Apr",
437+
"May", "Jun", "Jul", "Aug",
438+
"Sep", "Oct", "Nov", "Dec"
439+
],
440+
dayFull: [
441+
"Sunday",
442+
"Monday",
443+
"Tuesday",
444+
"Wednesday",
445+
"Thursday",
446+
"Friday",
447+
"Saturday"
448+
],
449+
dayShort: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
450+
hours: "Hours",
451+
minutes: "Minutes",
452+
done: "Done",
453+
clear: "Clear",
454+
today: "Today",
455+
am: ["am", "AM"],
456+
pm: ["pm", "PM"],
457+
weekStart: 7,
458+
timeFormat: 24
459+
},
460+
core: { // translations of the core elements
461+
ok: "OK",
462+
cancel: "Cancel"
463+
}
464+
};
465+
~~~
466+
</details>
467+
307468
## 1.0 -> 1.1
308469

309470
### Api

0 commit comments

Comments
 (0)