$ uname -r
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// import vue and vue i18n | |
import Vue from 'vue'; | |
import VueI18n from 'vue-i18n'; | |
// --- Add your vue components here --- | |
// Vue.component('example-components', ExampleComponent); | |
// ------------------------------------ | |
// use the vue i18n plugin | |
Vue.use(VueI18n); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% block footer_scripts deferred %} | |
<script> | |
window.app_locale = "{{ app.request.locale }}"; | |
window.app_translations = {{ translation_dumper.dump()|json_encode|raw }}; | |
</script> | |
{% endblock %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
twig: | |
globals: | |
translation_dumper: '@app.helper.translations_dumper' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace AppBundle\Helper; | |
use Pimcore\Config; | |
use Pimcore\Db; | |
class TranslationsDumper | |
{ | |
public function dump() |
#Steps to install latest Laravel, LEMP on AWS Ubuntu 16.4 version. This tutorial is the improvised verision of this tutorial on Digitalocean based on my experience.
Run the following commands in sequence.
sudo apt-get install -y language-pack-en-base
sudo LC_ALL=en_US.UTF-8 add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install zip unzip