All Projects → owl1n → vue-translations

owl1n / vue-translations

Licence: MPL-2.0 license
VueJs translations very similar to Laravel Translation system

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to vue-translations

I18n Ally
🌍 All in one i18n extension for VS Code
Stars: ✭ 1,931 (+12773.33%)
Mutual labels:  i18n, vue-i18n
vue-filter-pluralize
Simple pluralize filter for Vue.js
Stars: ✭ 13 (-13.33%)
Mutual labels:  i18n, vue-i18n
rails
Rails translation made _('simple').
Stars: ✭ 65 (+333.33%)
Mutual labels:  i18n
next
(Work in progress) The rewritten version of the original PizzaQL 🍕
Stars: ✭ 45 (+200%)
Mutual labels:  i18n
android-studio-plugin
Integrate your Android project with Crowdin
Stars: ✭ 52 (+246.67%)
Mutual labels:  i18n
rosetta
Easy to use Rust i18n library based on code generation
Stars: ✭ 37 (+146.67%)
Mutual labels:  i18n
unicode-programming
Unicode programming examples
Stars: ✭ 33 (+120%)
Mutual labels:  i18n
github-explorer
Explore GitHub repositories - built with React.js and Styled Components.
Stars: ✭ 32 (+113.33%)
Mutual labels:  i18n
background-translation-i18n
Based on the YII2 module to translate JSON formatted translation files on the web
Stars: ✭ 11 (-26.67%)
Mutual labels:  i18n
react-i18next-phraseapp
Library support to use react-i18next with the Phrase In-Context Editor - DEPRECATED
Stars: ✭ 14 (-6.67%)
Mutual labels:  i18n
enumize
Extend ActiveRecord::Enum for add more helpful methods.
Stars: ✭ 25 (+66.67%)
Mutual labels:  i18n
bcp-47
Parse and stringify BCP 47 language tags
Stars: ✭ 51 (+240%)
Mutual labels:  i18n
figma-static-localizer
A Figma plugin for static localization
Stars: ✭ 30 (+100%)
Mutual labels:  i18n
i18n lazy scope
Use lazy lookup with custom i18n scopes.
Stars: ✭ 11 (-26.67%)
Mutual labels:  i18n
i18n-core
i18n-core is a no-fuzz Node.js implementation of i18n.
Stars: ✭ 14 (-6.67%)
Mutual labels:  i18n
i18n-language.js
i18n-language.js is Simple i18n language with Vanilla Javascript
Stars: ✭ 21 (+40%)
Mutual labels:  i18n
i18n-command
Provides internationalization tools for WordPress projects.
Stars: ✭ 76 (+406.67%)
Mutual labels:  i18n
TranslationFiles
[READ-ONLY] This repo contains all the necessary files to generate translation packs for PrestaShop 1.6 and 1.7. It's updated automatically.
Stars: ✭ 16 (+6.67%)
Mutual labels:  i18n
ra-language-japanese
Japanese messages for react-admin
Stars: ✭ 22 (+46.67%)
Mutual labels:  i18n
li18nt
🌎 Lint your i18n translation files. Detect conflicting properties, duplicates and make it more readable and easier to maintain by formatting it!
Stars: ✭ 29 (+93.33%)
Mutual labels:  i18n

VueJs Translations :shipit:

Hello everybody! I'm glad to present you a library to support the translations in your Vue project.

This translations component is very similar to Laravel Translations. You can setup inline params in your locale if needed.

Installation is very simple, in a few steps:

npm i vue-translations

You need to setup locale file for yourself.

// locales.js
export default {
    en: {
        home: {
            header: 'My best project ever',
        },
    },
    ru: {
        home: {
            header: 'Мой лучший проект в жизни',
        },
    },
};
import VueTranslation from 'vue-translations'
import locales from './locales.js';

Vue.use(VueTranslations);

new Vue({
    mounted() {
        // setup from one method
        this.$translations.setup('en', locales);
        // another methods:
        // change current language
        this.$translations.setLang('en');
        // load locales
        this.$translations.load(locales);
    },
    render: (h) => h,
});

Use it in your projects is easy!

<template>
    <div v-text="__t('home.header')" />
</template>

Inline params

Into your locale file

en: {
        home: {
            header: 'My best project - :name',
        },
    },
},

Into your application

<div v-text="__t('home.header', { name: 'Project' })" />
// output: My best project - Project
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].