@transifex/native
Advanced tools
Comparing version 7.1.1 to 7.1.2
@@ -49,3 +49,3 @@ declare module '@transifex/native' { | ||
interface ITranslationPolicy { | ||
handle(sourceString: string, localeCode: string): string; | ||
handle(sourceString: string, localeCode: string, params: ITranslateParams): string; | ||
} | ||
@@ -128,3 +128,3 @@ | ||
export class PseudoTranslationPolicy implements ITranslationPolicy { | ||
handle(sourceString: string, _localeCode: string): string; | ||
handle(sourceString: string, _localeCode: string, _params: ITranslateParams): string; | ||
} | ||
@@ -137,3 +137,3 @@ | ||
export class SourceStringPolicy implements ITranslationPolicy { | ||
handle(sourceString: string, _localeCode: string): string; | ||
handle(sourceString: string, _localeCode: string, _params: ITranslateParams): string; | ||
} | ||
@@ -140,0 +140,0 @@ |
{ | ||
"name": "@transifex/native", | ||
"version": "7.1.1", | ||
"version": "7.1.2", | ||
"description": "i18n framework using Transifex Native", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -49,3 +49,3 @@ declare module '@transifex/native' { | ||
interface ITranslationPolicy { | ||
handle(sourceString: string, localeCode: string): string; | ||
handle(sourceString: string, localeCode: string, params: ITranslateParams): string; | ||
} | ||
@@ -128,3 +128,3 @@ | ||
export class PseudoTranslationPolicy implements ITranslationPolicy { | ||
handle(sourceString: string, _localeCode: string): string; | ||
handle(sourceString: string, _localeCode: string, _params: ITranslateParams): string; | ||
} | ||
@@ -137,3 +137,3 @@ | ||
export class SourceStringPolicy implements ITranslationPolicy { | ||
handle(sourceString: string, _localeCode: string): string; | ||
handle(sourceString: string, _localeCode: string, _params: ITranslateParams): string; | ||
} | ||
@@ -140,0 +140,0 @@ |
@@ -65,3 +65,3 @@ /* eslint class-methods-use-this: 0, no-unused-vars: 0 */ | ||
export default class PseudoTranslationPolicy { | ||
handle(sourceString, localeCode) { | ||
handle(sourceString, localeCode, params) { | ||
return sourceString | ||
@@ -68,0 +68,0 @@ .split(/__txnative__/) |
@@ -10,5 +10,5 @@ /* eslint class-methods-use-this: 0, no-unused-vars: 0 */ | ||
export default class SourceStringPolicy { | ||
handle(sourceString, localeCode) { | ||
handle(sourceString, localeCode, params) { | ||
return sourceString; | ||
} | ||
} |
@@ -154,3 +154,3 @@ /* globals __VERSION__, __PLATFORM__ */ | ||
if (isMissing && locale) { | ||
translation = this.missingPolicy.handle(translation, locale); | ||
translation = this.missingPolicy.handle(translation, locale, params); | ||
} | ||
@@ -157,0 +157,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1521863