viliusle / miniPaint

online image editor
http://viliusle.github.io/miniPaint/
Other
2.59k stars 602 forks source link

Customize language #385

Closed matthieubrandt closed 7 months ago

matthieubrandt commented 7 months ago

Hello there,

I have added NL.json.

How can i make this language shown as main language.

Thanks!

matthieubrandt commented 7 months ago

nl.json

phpony commented 7 months ago

Put "nl" in this config file instead of "en" for editor to load into your language by default.

Change this config file from default:

                    {
                        name: 'English',
                        target: 'tools/translate.translate',
                        parameter: 'en',
                    },
                    {
                        divider: true
                    },

To your personalized order:

                    {
                        name: 'Dutch',
                        target: 'tools/translate.translate',
                        parameter: 'nl',
                    },
                    {
                        divider: true
                    },
                    {
                        name: 'English',
                        target: 'tools/translate.translate',
                        parameter: 'en',
                    },
viliusle commented 7 months ago

I also included Dutch as additional language & added your translations.

https://github.com/viliusle/miniPaint/commit/1e11f8d5900ae847815bf44ba595bf9e5a92f6d3 https://github.com/viliusle/miniPaint/commit/1fce319dc9d920344e6c796cd9f9e0c2ac8e2fb5

matthieubrandt commented 7 months ago

Thank you brother! You are a great man!