akveo / akveo/nebular

Calendar I18n: some parts of the calendar can't be internationalized

オープン
#1,111 コメント 0 件 リアクション 5 件 担当者 0 名 GitHub で見る
enhancement module:components P2: important quality
主要言語
TypeScript
スター
8.1k
フォーク
1.5k
PR マージ指標
30日以内にマージされた PR はありません

説明

Some parts of the calendar kit can't be internationalized:

- [Here](https://github.com/akveo/nebular/blob/master/src/framework/theme/components/calendar-kit/components/calendar-header/calendar-header.component.ts#L21) we have `Today` word hardcoded in the template.
- Usage of Angular `DatePipe` [here](https://github.com/akveo/nebular/blob/master/src/framework/theme/components/calendar-kit/components/calendar-header/calendar-header.component.ts#L18) and [here](https://github.com/akveo/nebular/blob/master/src/framework/theme/components/calendar-kit/components/calendar-navigation/calendar-navigation.component.ts#L24) require Angular locale to be loaded, but can't be resolved another way, for example, when we're using another i18n library, which is not in Angular core.
- `getDate()` functionality is used in computations inside `calendar-kit`, also as exported for public use and may be overridden to provided proper i18n and this override may lead to errors.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。