Skip to content

Commit

Permalink
feat: add I18nContextFlavor
Browse files Browse the repository at this point in the history
  • Loading branch information
EdJoPaTo committed Nov 25, 2021
1 parent 5f81aa7 commit 22e4993
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions source/context.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
import {Config, Repository, TemplateData, Template} from './types';

export interface I18nContextFlavor {
readonly i18n: I18nContext;
}

export class I18nContext {
readonly config: Config;
readonly repository: Repository;
Expand Down

3 comments on commit 22e4993

@TemaSM
Copy link

@TemaSM TemaSM commented on 22e4993 Dec 4, 2021

Choose a reason for hiding this comment

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

How about to add this to docs?
https://grammy.dev/plugins/i18n.html#usage
Thanks ❤️

@KnorpelSenf
Copy link
Member

Choose a reason for hiding this comment

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

@EdJoPaTo @TemaSM I agree—PR welcome!

@EdJoPaTo
Copy link
Member Author

@EdJoPaTo EdJoPaTo commented on 22e4993 Dec 4, 2021

Choose a reason for hiding this comment

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

Please sign in to comment.