mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 02:51:14 +00:00
fix(editor): Fix locale plularisation if count is 0 (#6312)
This commit is contained in:
@@ -16,7 +16,7 @@
|
|||||||
<n8n-text size="small" :bold="true" color="warning">
|
<n8n-text size="small" :bold="true" color="warning">
|
||||||
{{
|
{{
|
||||||
locale.baseText('executionUsage.currentUsage.count', {
|
locale.baseText('executionUsage.currentUsage.count', {
|
||||||
adjustToNumber: daysLeftOnTrial,
|
adjustToNumber: daysLeftOnTrial || 0,
|
||||||
})
|
})
|
||||||
}}
|
}}
|
||||||
</n8n-text>
|
</n8n-text>
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ export class I18nClass {
|
|||||||
key: BaseTextKey,
|
key: BaseTextKey,
|
||||||
options?: { adjustToNumber?: number; interpolate?: { [key: string]: string } },
|
options?: { adjustToNumber?: number; interpolate?: { [key: string]: string } },
|
||||||
): string {
|
): string {
|
||||||
if (options && options.adjustToNumber) {
|
if (options?.adjustToNumber !== undefined) {
|
||||||
return this.i18n.tc(key, options.adjustToNumber, options && options.interpolate).toString();
|
return this.i18n.tc(key, options.adjustToNumber, options && options.interpolate).toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user