pluginpal / strapi-plugin-config-sync

:recycle: CLI & GUI for continuous migration of config data across environments
https://www.pluginpal.io/plugin/config-sync
MIT License
251 stars 36 forks source link

Label texts of Export Confirmation buttons (Cancel / somethin else) are not shown #108

Closed jnachtigall closed 10 months ago

jnachtigall commented 11 months ago

Bug report

Describe the bug

A clear and concise description of what the bug is.

Steps to reproduce the behavior

  1. Go to Settings -> Config Sync ->Interface
  2. Click on Export
  3. Confirmation window opens
  4. Correct translated labels are missing. Text is cut.

Expected behavior

Label buttons' text should be correct and understandable. For the 1st button left one can somehow guess that it should mean "Cancel", for the 2nd button it is hard to guess.

Screenshots

image

Code snippets

If applicable, add code samples to help explain your problem.

System

Additional context

I also already had this issue in plugin version 1.1. I think it is present for some month already. I am based in Germany, but my browser (firefox) language is actually English. Not sure, but looks like the plugin is not able to load the translation locales and instead prints out some kind variable.label.name notation. Which is then even cropped due to inflexible width.

boazpoolman commented 11 months ago

Hi @jnachtigall

I see in your screenshot what the problem is, though I'm unable to replicate this issue on my machine. The code for these translations haven't been touched in a while anyways.

The only way I could think of how this could go wrong is if the plugin is installed with an incorrect identifier. In the screenshot all those weird texts all start with config-sync. That's because the plugin expects the plugin to be installed using config-sync as the plugin identifier. If you were to install the plugin using any other key this issue could be replicated.

Did you maby make a typo in the config/plugins.js file or anywhere else?

boazpoolman commented 10 months ago

Hi @jnachtigall Just checking in here. Did you manage to take a look at my comment here above?

jnachtigall commented 10 months ago

The only way I could think of how this could go wrong is if the plugin is installed with an incorrect identifier. In the screenshot all those weird texts all start with config-sync. That's because the plugin expects the plugin to be installed using config-sync as the plugin identifier. If you were to install the plugin using any other key this issue could be replicated.

Sorry for the late reply, I was on vacation. Yeah, I guess that's why. I was using a fork which had a different package name (not config-sync but with a local package scope prefixed).

Thanks for explaining. I could fix it now.