You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there! thanks for making this awesome lib, I'm currently working on a new project and using the old language resource files, to do so, I will need to edit those files to make them compatible with Slang. so here's my question.
Let's say I need to support two languages like below:
en.i18n.json { "greetings" : "hello" }
es.i18n.json { "greetings" : "hola $amigo" }
as you can see, the es part contains the same key but it has an argument that needs to be filled in, when I run the slang command, it generates both *.g.dart files, but gets an error in the strings_es.g.dart file, it says:
Class 'TranslationsES' can't define field 'greetings' and have method 'Translations. greetings' with the same name.
any help thanks
The text was updated successfully, but these errors were encountered:
TacticalTwerking
changed the title
Is the args skippable with the same key?
Is the args skippable in some language
Feb 14, 2025
Hi there! thanks for making this awesome lib, I'm currently working on a new project and using the old language resource files, to do so, I will need to edit those files to make them compatible with Slang. so here's my question.
Let's say I need to support two languages like below:
en.i18n.json
{ "greetings" : "hello" }
es.i18n.json
{ "greetings" : "hola $amigo" }
as you can see, the es part contains the same key but it has an argument that needs to be filled in, when I run the slang command, it generates both *.g.dart files, but gets an error in the strings_es.g.dart file, it says:
Class 'TranslationsES' can't define field 'greetings' and have method 'Translations. greetings' with the same name.
any help thanks
The text was updated successfully, but these errors were encountered: