backdrop-contrib / conditional_content_block

A module that let's you provide different content options for different roles.
GNU General Public License v2.0
0 stars 0 forks source link

Multi-lingual support #4

Open stpaultim opened 2 years ago

stpaultim commented 2 years ago

What should I be doing to extend Backdrop CMS multilingual support to this module?

stpaultim commented 2 years ago

I asked this question, because I was digging around in the core block module and see lots of code that seems to be testing for language stuff. Code like this:

  if (isset($blocks[$delta][$langcode])) {
    return $blocks[$delta][$langcode];
  }

So I was wondering if there is anything like this that I need to be concerned about in a contrib module. However, upon further thought it occurs to me, that maybe I don't have to worry about this because maybe it's all handled by core?