Skip to content

Localization and missing strings#6419

Open
nerijunior wants to merge 1 commit intosolidusio:mainfrom
nerijunior:njjjr/add-missing-locales
Open

Localization and missing strings#6419
nerijunior wants to merge 1 commit intosolidusio:mainfrom
nerijunior:njjjr/add-missing-locales

Conversation

@nerijunior
Copy link
Copy Markdown

Summary

  • Added missing new admin menu_items; (normalized with i18n-tasks`)
  • Changed orders/index table to display localized strings for: order_state, payment_state, and shipment_state;
  • Localized the new admin page title according to the existing active record strings

Checklist

Check out our PR guidelines for more details.

The following are mandatory for all PRs:

Copy link
Copy Markdown
Member

@tvdeyen tvdeyen left a comment

Choose a reason for hiding this comment

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

Thanks.


def title
model_class.model_name.human.pluralize
I18n.t("activerecord.models.#{model_class.model_name.i18n_key}", count: 2)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We should use model.class.model_name.human instead. We can pass count: :many if we want to pluralize.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This wasn't resolved?

Comment thread admin/app/components/solidus_admin/orders/index/component.rb Outdated
Comment thread admin/app/components/solidus_admin/orders/index/component.rb Outdated
Comment thread admin/app/components/solidus_admin/orders/index/component.rb Outdated
Comment thread admin/config/locales/menu_item.en.yml Outdated
@codecov
Copy link
Copy Markdown

codecov Bot commented Feb 21, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.50%. Comparing base (b2b3f2e) to head (349ba58).
⚠️ Report is 97 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6419   +/-   ##
=======================================
  Coverage   89.50%   89.50%           
=======================================
  Files         981      981           
  Lines       20479    20479           
=======================================
  Hits        18330    18330           
  Misses       2149     2149           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@nerijunior nerijunior force-pushed the njjjr/add-missing-locales branch from e99f2e9 to 121e2e6 Compare February 23, 2026 15:30
@nerijunior nerijunior requested a review from tvdeyen February 23, 2026 15:30
@nerijunior nerijunior force-pushed the njjjr/add-missing-locales branch from 5ac0009 to 349ba58 Compare February 23, 2026 15:31

def title
model_class.model_name.human.pluralize
I18n.t("activerecord.models.#{model_class.model_name.i18n_key}", count: 2)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This wasn't resolved?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

3 participants