nickypangers / flutter-arb

Flutter ARB is a web editor for creating and editing your .arb files needed for internationalising your Flutter applications.
https://flutterarb.com
MIT License
9 stars 1 forks source link

Nested Arrays not handled in web UI; Broken Identing #2

Open elmariocarlos opened 2 years ago

elmariocarlos commented 2 years ago

Hi! I was using the tool, it's a great help to get someone to support translation efforts easily. I have noted the following:

1)Nested arrays are not shown completely. Let's say, for validation purposes:

"@inputMaxLenght": {
    "placeholders": {
        "length": {
            "type": "int"
        }
    }
},

And the result in Web GUI will be:

@inputMaxLenght

es: [object Object]

en: [object Object]


2)When exported, identing is broken from what originally used, complecating fine tunning or reding through IDE. For example:

Original (abstract): { "@@locale": "es", "createAccount": "Crear Cuenta", "login": "Log In", "forgotYourPassword": "¿Olvidaste tu contraseña?", "user": "Usuario", "password": "Contraseña", "verifyYourAccount": "Verifica tu cuenta", "enterVerificationCode": "Ingresa el código de verificación", "send": "Enviar", "activedUser": "Usuario Activado", "activationFailed": "No se pudo realizar la activación, código", "resendCode": "Reenviar Código", "invalidUser": "Usuario no valido", "emailSendedAgain": "Se ha enviado nuevamente el correo", "ok": "Ok", "whatsYourName": "¿Cómo te llamas?", "name": "Nombre(s)", "pleaseCompleteInput": "Por favor rellena este campo", "inputMaxLenght": "El tamaño máximo son {length} caracteres", "@inputMaxLenght": { "placeholders": { "length": { "type": "int" } } },

Exported by web tool: {"@@locale":"es","createAccount":"Crear Cuenta","login":"Log In","forgotYourPassword":"¿Olvidaste tu contraseña?","user":"Usuario","password":"Contraseña","verifyYourAccount":"Verifica tu cuenta","enterVerificationCode":"Ingresa el código de verificación","send":"Enviar","activedUser":"Usuario Activado","activationFailed":"No se pudo realizar la activación, código","resendCode":"Reenviar Código","invalidUser":"Usuario no valido","emailSendedAgain":"Se ha enviado nuevamente el correo","ok":"Ok","whatsYourName":"¿Cómo te llamas?","name":"Nombre(s)","pleaseCompleteInput":"Por favor rellena este campo","inputMaxLenght":"El tamaño máximo son {length} caracteres","@inputMaxLenght":{"placeholders":{"length":{"type":"int"}}},

Hope these help!

nickypangers commented 2 years ago

Hi. Thank you for bringing this up. Nested arrays are currently not supported. I shall add this to my feature roadmap. I'll leave this open for now and revisit once theres a new update for this.

Best regards

elmariocarlos commented 2 years ago

Great! Keep up the good work =)