Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cosmos.I18N | Add support for Handlebars.Net v1.x #14

Open
alexinea opened this issue Nov 27, 2019 · 1 comment
Open

Cosmos.I18N | Add support for Handlebars.Net v1.x #14

alexinea opened this issue Nov 27, 2019 · 1 comment
Labels
enhancement New feature or request idea
Milestone

Comments

@alexinea
Copy link
Member

alexinea commented Nov 27, 2019

添加对 Handlebars.Net v1.x 的支持

link: https://github.com/rexm/Handlebars.Net

@alexinea alexinea added enhancement New feature or request idea labels Nov 27, 2019
@alexinea alexinea added this to the 0.1.1 milestone Nov 27, 2019
@alexinea
Copy link
Member Author

alexinea commented Nov 28, 2019

Integrating Handlebars.NET was more difficult than I expected.

I have completed the integration with Cosmos.I18N based on Handlebars.NET:

{{T 'Hello World {0}' 'Main' 'zh-CN' DateTime.Now}}

But Handlebars.NET's support for different types of parameters is a bit weird, so it is impossible to format the i18n token accurately.

Integration work for Handlebars.NET will be suspended.

Expect 2.0 to change all that.
Handlebars-Net/Handlebars.Net#294

@alexinea alexinea changed the title Cosmos.I18N | 添加对 Handlebars.Net v1.x 的支持 Cosmos.I18N | Add support for Handlebars.Net v1.x Nov 28, 2019
@alexinea alexinea modified the milestones: 0.1.1, 0.2 Nov 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request idea
Projects
None yet
Development

No branches or pull requests

1 participant