• Hallo,

    I’m loading my theme translations not through the wp-content/languages directory, but from a custom folder:

    load_theme_textdomain( 'textdomain', get_stylesheet_directory() . '/languages' );

    These translations are not loaded in the editor, for example for the font sizes support.

    add_theme_support('editor-font-sizes', array(
         array(
             'name' => __( 'Small', 'textdomain' ),
             'size' => 14,
             'slug' => 'small'
         ),
    ) );

    Only if they are loaded through the wp-content/languages directory, they are correctly recongnized.

The topic ‘Theme translations and Gutenberg’ is closed to new replies.