i18n
Component
i18n
, shorts for internationalization, is the component to support
multi-lingual websites with language specific tools and parts. Bissetii prepared
a number of CSS styled language tools for easier multi-lingual content
management.
This component is available starting from v1.11.0
.
Hugo
Bissetii prepared a number of Hugo interfaces to manage i18n
component
seamlessly across all output formats.
Shortcodes
By default, it is hard to process single or multiple card data across multiple
outputs while maintaining a single input format. Hence, Bissetii prepared the
following shortcodes to standardize the i18n
rendering. These shortcodes are
specific to Bissetii which works differently from Hugo.
translate
Shortcode
To translate a given keyword to a specific language using multilingual
dictionary inside the data/
directory.
|
|
[LANG_DICTIONARY]
- COMPULSORY- Points to the multi-lingual dictionary dataset.
- It can be Hugo data pathing (e.g.
lang.dictionaries
). - Dictionary data shall be located inside
data/
directory and not Hugo’si18n/
directory.
[LANG]
- COMPULSORY- Selected dictionary type.
- To select current page’s language, use
this
as its value.
[KEYWORD]
- COMPULSORY- The common keyword search for the translated value.
- It can be Hugo data pathing (e.g.
list.section.title
).
Example usage:
|
|
This will render as:
|
|
Go
Coming Soon
HTML
Bissetii supports Button
component seamlessly across multiple output formats.
Additionally, starting from version v1.13.0
, the use of CSS variable is vital
for its upgrade from v1.12.5
.
Bissetii HTML codes for this component are the same for Vanilla HTML5 and AMPHTML.
As of now, development is still investigating the requirements for this component.
CSS
Bissetii provided a list of CSS variables dedicated for Button
styling
alteration without needing to recompile Sass.
As of now, development is still investigating the requirements for this component.
Javascript
This component does not rely on any Javascript.
Sass
Depending on release version, the Sass files work differently. Bissetii does not package Sass codes explictly so please view them via the git repository.
As of now, development is still investigating the requirements for this component.
Researches
Here are the researches done to ensure Button
component meets the necessary
quality assurances:
SCHEDULED COMING SOON
Epilogue
That’s all about i18n
component in Bissetii. If you need more feature or
need to report a bug, please feel free to file an issue at our
Issue Section.