Appsilon / shiny.i18n

Shiny applications internationalization made easy
https://appsilon.github.io/shiny.i18n/
Other
169 stars 38 forks source link

[Bug]: #109

Closed rschramm9 closed 1 year ago

rschramm9 commented 1 year ago

Guidelines

Project Version

No response

Platform and OS Version

No response

Existing Issues

No response

What happened?

When calling: Translator <- Translator$new(translation_csvs_path = "./data", separator_csv="|") throws warning

"Warning in load_local_config(translation_csv_config) : You didn't specify config translation yaml file. Default settings are used."

I can find nothing in code or in your project examples regarding the yaml cfg.

Please describe a correct correct yaml config file. Also please describe how to correctly 'specify' Also related, there is nothing in the docs regarding the "default settings" are...

Steps to reproduce

1.run your demo project. 2.observe in console: Warning in load_local_config(translation_csv_config) : You didn't specify config translation yaml file. Default settings are used. ...

Expected behavior

No warnings

Attachments

No response

Screenshots or Videos

No response

Additional Information

No response

jakubnowicki commented 1 year ago

Hi @rschramm9, Thank you for adding this issue. YAML file can be used to pass additional configurations like cultural_date_format when you use CSV (in JSON you can add it as one of the fields). You can find a little bit more here, but we will make sure that this feature is better documented.