Skip to content

Feature/Filter appliance list#15

Merged
coras-company-code merged 34 commits intomainfrom
feature/EAFEA-71-filter-appliance-list
Mar 10, 2026
Merged

Feature/Filter appliance list#15
coras-company-code merged 34 commits intomainfrom
feature/EAFEA-71-filter-appliance-list

Conversation

@coras-company-code
Copy link
Contributor

No description provided.

@coras-company-code coras-company-code force-pushed the feature/EAFEA-71-filter-appliance-list branch from 741a9fc to d7d496f Compare March 3, 2026 12:19
@coras-company-code coras-company-code force-pushed the feature/EAFEA-71-filter-appliance-list branch from 32bafda to 5a5c6de Compare March 5, 2026 14:41
@coras-company-code coras-company-code changed the title Feature/eafea 71 filter appliance list Feature/Filter appliance list Mar 5, 2026
@coras-company-code coras-company-code force-pushed the feature/EAFEA-71-filter-appliance-list branch from ad8e33c to 01a3fb3 Compare March 6, 2026 21:09
return typeMap[language][trimmed] || trimmed
}

export const countryTranslation = (data, language = 'en') => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

translation function can be a single utill function, instead of 3

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Theres now one translation function - however i kept wrappers for each category to make it more readable. What you think?

// Convenience wrappers for specific categories
export const fuelTranslation = (data, language = 'en') => {
  return translate('fuels', data, language)
}

export const typeTranslation = (data, language = 'en') => {
  return translate('applianceTypes', data, language)
}

export const countryTranslation = (data, language = 'en') => {
  return translate('countries', data, language)
}

}

const fuels = String(item.fuels)
.split(',')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please fix sonar alert

@sonarqubecloud
Copy link

@coras-company-code coras-company-code merged commit b3a7872 into main Mar 10, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants