mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-23 10:32:17 -08:00
fix(editor): Fix locale plularisation if count is 0 (#6312)
This commit is contained in:
parent
011d5778b1
commit
0d88bd7c1a
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue