[Update/Refactor] Main Page: Translation Engines. Apply Localization.

This commit is contained in:
Sakamoto Shiina committed 2024-11-13 06:54:28 +09:00
1 parent f835a3be80
commit dd21623b59
3 files changed
+25 -8

No files matched your search

+6
View File
@@ -0,0 +1,6 @@
export const updateLabelsById = (data_array, updates) => {
return data_array.map(item => {
const update = updates.find(update_item => update_item.id === item.id);
return update ? { ...item, label: update.label } : item;
});
};