vendrhub / vendr-checkout

A ready made checkout flow for Vendr, the eCommerce solution for Umbraco v8+
https://vendr.net/add-ons/vendr-checkout/
MIT License
14 stars 17 forks source link

Multilanguage support (in the checkout flow) #22

Closed JasonElkin closed 2 years ago

JasonElkin commented 3 years ago

Currently the views are hardcoded in English.

It would be better if they could be translated, or customised, without modifying the views directly.

@mattbrailsford I need to implement this for a project and can to contribute the changes back if you're happy with the approach.

Was thinking of just using the Dictionary with namespace-like keys e.g. "VendrCheckout.Confirmation.EmailSent" and using string.Format() compatible strings where necessary. e.g. "A confirmation email has been sent to {0}"

mattbrailsford commented 3 years ago

@JasonElkin absolutely! And yup, I agree, dictionary items would be the way to go 👍

mattbrailsford commented 3 years ago

Just worth noting, I've restructured this repository recently as I've reworked the package for use in Vendr v2 so you may need a clean fork if you created one previously. Also, you'll need to make sure to target the right version. If you are using Vendr v1x then you'll need to target v1/dev otherwise on Vendr v2 target v2/dev

mattbrailsford commented 2 years ago

Closing this issue as all latest views now use the dictionary for their values