Skip to content

Commit

Permalink
Added typings for registerCulture().
Browse files Browse the repository at this point in the history
  • Loading branch information
dmester committed Oct 18, 2020
1 parent 323d833 commit 2db2d51
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/stringformat.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,14 @@ declare namespace sffjs {
Y: string;
}

/**
* Registers a culture object and reevaluates which culture to be used. Missing properties
* are filled with information from the invariant culture.
*
* This function is automatically called when a sffjs bundled culture file is loaded.
*/
function registerCulture(culture: Partial<CultureInfo>): void;

/**
* Sets the specified culture. This command has no effect unless you also load the corresponding culture file.
* Sffjs does not come with a culture file autoloader.
Expand Down

0 comments on commit 2db2d51

Please sign in to comment.