How can the localized version be used inside a Vue2 component ?
See original GitHub issueHow can the localized version be used inside a Vue2 component ? I tryed the comands below (one at a time), but none of them worked.
</template>
<script>
import firebaseui from "https://www.gstatic.com/firebasejs/ui/2.5.1/firebase-ui-auth__pt.js";
import firebaseui from "./assets/firebase-ui-auth__pt.js";
require ("./assets/firebase-ui-auth__pt.js");
var firebaseui = require ("./assets/firebase-ui-auth__pt.js");
export default {
// ...
The console has shown the message “ReferenceError: firebaseui is not defined” in the command “new firebaseui.auth.AuthUI(firebase.auth())”.
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Vue 2 Localization with Vue I18n: A Step-by-Step Guide | Phrase
Get an insight into Vue 2 localization and learn how to plug the Vue I18n library into your app to make it ready...
Read more >Managing Local State In Vue.js Components | by Nick Basile
In our data , we have a state property that we're using to keep track of the different states of our component. Pretty...
Read more >Localization in Vue.js with vue-i18n - LogRocket Blog
In this tutorial, we'll show you how to use Vue I18n to implement localization, internationalization, and translation in your Vue.js app.
Read more >Components Basics - Vue.js
The template is inlined as a JavaScript string here, which Vue will compile on the fly. You can also use an ID selector...
Read more >Component interpolation | Vue I18n
Support Version. 7.0+. Sometimes, we need to localize with a locale message that was included in a HTML tag or component. For example:....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You can first
npm install firebaseui --save
to bring in all missing dependencies.Clone the repo. Build the translated library:
npm run build build-npm-pt
this will generatedist/npm__pt.js
Copy it to your Vue project
src
folderAdd npm__pt.js to
.babelrc
ignore list:Import it in your Vue component:
import firebaseui from '../npm__fr'