toonvanstrijp / nestjs-i18n

The i18n module for nestjs.
https://nestjs-i18n.com
Other
642 stars 106 forks source link

Formatting is not working for Kurdish string #480

Closed dtheb closed 1 year ago

dtheb commented 1 year ago

Hello,

I'm trying to translate a string with a dynamic number, it works perfectly fine with Arabic, but not fro Kurdish, even tho Kurdish uses Arabic alphabets

Version: 10.2.6

Lang file (Json)

{
    "driver_far_orders_target": "بۆ تەواوکردنی ئەو ئامانجەی کە پێویستە وەربگریت { orders } داواکاری لەدوورەوە"
}

Usage

message: req.i18nContext.t(
    'accept_clearance.driver_far_orders_target', 
    { 
        args: { orders: driverStats.target_far_orders }
    },
)

Results:

بۆ تەواوکردنی ئەو ئامانجەی کە پێویستە وەربگریت  داواکاری لەدوورەوە
rubiin commented 1 year ago

@dtheb can you provide a minimal reproduction

dtheb commented 1 year ago

@rubiin Not really, this is very old I forgot I wrote it. I used template literals for a workaround, it was broken up until few weeks ago somehow it fixed itself