Skip to content

Load Translator object into a single HTML #1

@merolhack

Description

@merolhack

Hi, how can i use/load the Translator object(Global JS) into a single HTML page without Webpack?

My code is:

<script src="assets/js/sprintf.min.js"></script>
<script src="assets/js/translator.js"></script>
<script>
(function() {
    'use strict';       
    console.log( Translator );
})();
</script>

It shows me at the console the next Error:

Uncaught ReferenceError: Translator is not defined

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions