Skip to main content

i18n localization for Baka and Pyramid

Project description

baka_i18n for baka framework or pyramid
------------------------------------------


Management locale 118n for baka framework and Pyramid


Basic usage
```````````

.. code:: yaml
package: {your_root_package_or_egg}
armor:
config: configs # config folder
assets: assets # assets folder
bundles: assets.yaml # filename assets config
url: static
debug: False
manifest: file
cache: False
auto_build: True


in assets.yaml

.. code::

css-vendor:
filters: scss,cssmin
depends: '**/*.scss'
output: {your_root_package_or_egg}:public/vendor.%(version)s.css
contents: styles/app.scss


js-vendor:
config:
UGLIFYJS_BIN: ./node_modules/.bin/uglifyjs
filters: uglifyjs
output: {your_root_package_or_egg}:public/vendor.%(version)s.js
contents:
- javascripts/pace.js
- javascripts/moment-with-locales.js
- javascripts/jquery.js
- javascripts/handlebars.js
- javascripts/handlers-jquery.js
- javascripts/cookies.js
- javascripts/lodash.js
- javascripts/materialize.js


setup to config
```````````````
in python code


.. code:: python

config.include('baka_armor')


in development.ini


.. code::

pyramid.includes =
pyramid_debugtoolbar
baka_armor


Usage in mako template
```````````````````````

.. code::
% for url in request.web_env['js-vendor'].urls():
<script src="${request.static_url(url)}" />
% endfor


.. code:: python

js = Bundle('js/main.js', filters='uglifyjs', output='bundle.js',
depends='js/**/*.js')

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

baka_i18n-0.1.1.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

baka_i18n-0.1.1-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file baka_i18n-0.1.1.tar.gz.

File metadata

  • Download URL: baka_i18n-0.1.1.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for baka_i18n-0.1.1.tar.gz
Algorithm Hash digest
SHA256 09c128a24895b615dbf3393c836ec6f9cd81b2c09cf5bb26ebee1650df39b842
MD5 528b1ab3d70c67113830d98059aa8405
BLAKE2b-256 3a337e2e46bf23a64d04e8e8d1876e7fb19090eea9edb4f27be469fbd9065d85

See more details on using hashes here.

File details

Details for the file baka_i18n-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for baka_i18n-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f68ba1b41f470bfffa2a9cf07f5b5ebdf38e71e2fdd648960185772f070d3a66
MD5 dc81af55334ef5b936e5d614c860203a
BLAKE2b-256 4e9fd06ab178b0d010b4473e4ffc33c51d3994866bc52e0226d62edbce4b0fa1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page