Skip to content

Commit

Permalink
Expose types, rename config object
Browse files Browse the repository at this point in the history
  • Loading branch information
drewjbartlett committed Nov 20, 2023
1 parent af75c1c commit b52cedf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/__exports/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { createI17n, type Translations, type Interpolations, type i17nConfig } from '@src/core/create-i17n';
export { createI17n, type Translations, type Interpolations, type I17nConfig } from '@src/core/create-i17n';
4 changes: 2 additions & 2 deletions src/core/create-i17n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export interface i17n {
extend: (extended: Translations) => void;
}

export interface i17nConfig {
export interface I17nConfig {
/**
* The core { key: value } translations.
*/
Expand Down Expand Up @@ -76,7 +76,7 @@ function buildCountValueKey(k: string, count: number): string {
/**
* Initialize the core i17n instance.
*/
export function createI17n(config: i17nConfig): i17n {
export function createI17n(config: I17nConfig): i17n {
const cache = config.cache || new Map<string, string | InterpolatedFn>();
let translations: Translations = config.translations;
const loggingEnabled = Boolean(config.loggingEnabled);
Expand Down

0 comments on commit b52cedf

Please sign in to comment.