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

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

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;
});
};