<script>
    var G5T = function(key, fallback) {
        var map = {
            GANTRY5_PLATFORM_INHERITING_FROM_X: {{ 'GANTRY5_PLATFORM_INHERITING_FROM_X'|trans|json_encode|raw }},
            GANTRY5_PLATFORM_JS_LOADING: {{ 'GANTRY5_PLATFORM_JS_LOADING'|trans|json_encode|raw }},
            GANTRY5_PLATFORM_JS_PROCESSING: {{ 'GANTRY5_PLATFORM_JS_PROCESSING'|trans|json_encode|raw }},
            GANTRY5_PLATFORM_JS_LM_SETTINGS: {{ 'GANTRY5_PLATFORM_JS_LM_SETTINGS'|trans|json_encode|raw }},
            GANTRY5_PLATFORM_JS_LM_CONFIGURE_SETTINGS: {{ 'GANTRY5_PLATFORM_JS_LM_CONFIGURE_SETTINGS'|trans|json_encode|raw }},
            GANTRY5_PLATFORM_JS_LM_ADD_ROW: {{ 'GANTRY5_PLATFORM_JS_LM_ADD_ROW'|trans|json_encode|raw }},
            GANTRY5_PLATFORM_JS_LM_DISABLED_PARTICLE: {{ 'GANTRY5_PLATFORM_JS_LM_DISABLED_PARTICLE'|trans|json_encode|raw }},
            GANTRY5_PLATFORM_JS_LM_GRID_EQUALIZE: {{ 'GANTRY5_PLATFORM_JS_LM_GRID_EQUALIZE'|trans|json_encode|raw }},
            GANTRY5_PLATFORM_JS_LM_GRID_SORT_MOVE: {{ 'GANTRY5_PLATFORM_JS_LM_GRID_SORT_MOVE'|trans|json_encode|raw }},
            GANTRY5_PLATFORM_JS_LM_SIZE_LIMITS_RANGE: {{ 'GANTRY5_PLATFORM_JS_LM_SIZE_LIMITS_RANGE'|trans|json_encode|raw }},
            GANTRY5_PLATFORM_JS_REVIEW_FIELDS: {{ 'GANTRY5_PLATFORM_JS_REVIEW_FIELDS'|trans|json_encode|raw }},
            GANTRY5_PLATFORM_JS_INVALID_FIELDS: {{ 'GANTRY5_PLATFORM_JS_INVALID_FIELDS'|trans|json_encode|raw }},
            GANTRY5_PLATFORM_JS_PARTICLE_SETTINGS_APPLIED: {{ 'GANTRY5_PLATFORM_JS_PARTICLE_SETTINGS_APPLIED'|trans|json_encode|raw }},
            GANTRY5_PLATFORM_JS_MENU_SETTINGS_APPLIED: {{ 'GANTRY5_PLATFORM_JS_MENU_SETTINGS_APPLIED'|trans|json_encode|raw }},
            GANTRY5_PLATFORM_JS_GENERIC_SETTINGS_APPLIED: {{ 'GANTRY5_PLATFORM_JS_GENERIC_SETTINGS_APPLIED'|trans|json_encode|raw }},
            GANTRY5_PLATFORM_JS_SETTINGS_APPLIED: {{ 'GANTRY5_PLATFORM_JS_SETTINGS_APPLIED'|trans|json_encode|raw }},
            GANTRY5_PLATFORM_JS_POSITIONS_SETTINGS_APPLIED: {{ 'GANTRY5_PLATFORM_JS_POSITIONS_SETTINGS_APPLIED'|trans|json_encode|raw }},
            GANTRY5_PLATFORM_JS_FILTER_MISMATCH: {{ 'GANTRY5_PLATFORM_JS_FILTER_MISMATCH'|trans|json_encode|raw }},
            GANTRY5_PLATFORM_JUST_NOW: {{ 'GANTRY5_PLATFORM_JUST_NOW'|trans|json_encode|raw }},
            GANTRY5_PLATFORM_JS_KEYVALUE_DUPLICATE: {{ 'GANTRY5_PLATFORM_JS_KEYVALUE_DUPLICATE'|trans|json_encode|raw }},
            GANTRY5_PLATFORM_JS_KEYVALUE_EXCLUDED: {{ 'GANTRY5_PLATFORM_JS_KEYVALUE_EXCLUDED'|trans|json_encode|raw }},
            GANTRY5_PLATFORM_JS_NO_SAVE_DETECTED: {{ 'GANTRY5_PLATFORM_JS_NO_SAVE_DETECTED'|trans|json_encode|raw }},
            GANTRY5_PLATFORM_SAVED: {{ 'GANTRY5_PLATFORM_SAVED'|trans|json_encode|raw }},
            GANTRY5_PLATFORM_LAST_SAVED: {{ 'GANTRY5_PLATFORM_LAST_SAVED'|trans|json_encode|raw }},
            GANTRY5_PLATFORM_JS_CSS_COMPILED: {{ 'GANTRY5_PLATFORM_JS_CSS_COMPILED'|trans|json_encode|raw }},
            GANTRY5_PLATFORM_JS_SAVE_SUCCESS: {{ 'GANTRY5_PLATFORM_JS_SAVE_SUCCESS'|trans|json_encode|raw }},
        };

        return map[key] || fallback || key;
    };
</script>
