Skip to content

Commit

Permalink
Chore: Make interpolations optional in translate service
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan.holzapfel committed Aug 9, 2022
1 parent b61b80d commit 43b0537
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@stefanholzapfel/lit-translate",
"version": "3.0.1",
"version": "3.0.2",
"description": "A lightweight translation directive for Lit 2",
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion src/translate.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class TranslateService {
return strings;
}

public static translate(identifier: string, interpolations: Interpolations): string | TemplateResult {
public static translate(identifier: string, interpolations?: Interpolations): string | TemplateResult {
let strings: string | Strings = TranslateService.strings.get(TranslateService.activeLanguage);
const identifierArray = identifier.split('.');
for (const segment of identifierArray) {
Expand Down

0 comments on commit 43b0537

Please sign in to comment.