Skip to main content

How to add Simple Copy to Strapi without consequences

  1. make sure there is no root copy that has a value

    Example:

    • test.example is root copy of test.example.label

    • If test.example is relevant, then if you add a sub-copy, such as test.example.label, that copy will not work because it is a deep hash in yml that has been saved for parsing for I18n gem

      test:
      example: value
      example:
      label: value2

      first example will be used as value, and then everything else with same name will be ignored

    • To prevent this problem, you must name the copy with a unique name. For example, test.example-label or test.example_label.

  2. while naming the copy dont use spaces, comma and new line

  3. There are 2 parts of the `Simple Copy' implementation.

    1. Backend part that contains all Simple Copy in sc SwitchboardHelper module
    2. Frontend part has been partially migrated so as not to load them all. Loaded copies are all copies starting with general, components, comments_response, users_components, wix_mini_market, productreviews,powrzilla, app_settings, app_standalone and all parent app types.
  4. There is broader description about Simple Copy API