adopted-ember-addons / adopted-ember-addons/ember-pikaday
Format input output to user locale
- 主要语言
- JavaScript
- 星标
- 156
- 派生
- 164
- PR 合并指标
- 30 天内没有已合并 PR
描述
I've been trying to set the format to user's locale format (the formatted string visible in the input field) to no availability.
The problem seems to be that the `format` parameter expects a format string eg `{{pikaday-input format="MM/DD/YYYY"}}` but it's impossible to find out what the browser's format is currently set.
I would actually expect the output to be processed with `Date.prototype.toLocaleDateString()` by default with the option to customize it using the `format` parameter.
It might be me missing something important. Do you have any suggestions?
贡献指南
调研方向
Start by tracing how the `format` parameter is handled by the datepicker component and how the formatted string is placed in the input field. Compare that behavior with `Date.prototype.toLocaleDateString()` and determine the expected default and customization behavior, then define tests covering locale output and an explicit `format` value.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript
- 领域
- frontend
- Issue 类型
- 功能
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 20/100