mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +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">
|
||||
{{
|
||||
locale.baseText('executionUsage.currentUsage.count', {
|
||||
adjustToNumber: daysLeftOnTrial,
|
||||
adjustToNumber: daysLeftOnTrial || 0,
|
||||
})
|
||||
}}
|
||||
</n8n-text>
|
||||
|
||||
@@ -64,7 +64,7 @@ export class I18nClass {
|
||||
key: BaseTextKey,
|
||||
options?: { adjustToNumber?: number; interpolate?: { [key: string]: string } },
|
||||
): string {
|
||||
if (options && options.adjustToNumber) {
|
||||
if (options?.adjustToNumber !== undefined) {
|
||||
return this.i18n.tc(key, options.adjustToNumber, options && options.interpolate).toString();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user