Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: ECA: Event - Condition - Action 3.1.8 Minor update available for module eca (3.1.8). Release: Horizon Aid theme 1.0.2 Minor update available for theme vartheme_bs5_horizonaid (1.0.2). Release: LocalGov Alert Banner 1.10.1 Minor update available for module localgov_alert_banner (1.10.1). Release: Kordiam 1.0.14 Minor update available for module kordiam (1.0.14). Release: WissKI 8.x-4.4 Minor update available for module wisski (8.x-4.4). Release: AI Empathy Evaluation 1.3.0 Minor update available for module ai_empathy (1.3.0). Release: Zefix 1.0.5 Minor update available for module zefix (1.0.5). Release: Ui Suite Dsfr 1.15.2 Minor update available for theme ui_suite_dsfr (1.15.2). Usage Milestone: Term CSV Export Import Module term_csv_export_import crossed 1,000 active installs. Module Revived: Behat javascript 1.2.1 Module behat_javascript updated after 23 months of inactivity (1.2.1).

This module allows you to convert Roman numeral amounts into Chinese capital letters within Webform or any Twig template. It provides a filter to transform numerical input like "38038.00" into its Chinese uppercase representation, such as "叁万捌仟零叁拾捌元整".

Features

Webform中将罗马数字金额转为中文大写金额

In Webform or any template based TWIG,you can use it Convert Roman_numerals amount in Chinese capital letters.
e.g: Price in "38038.00"--------->"叁万捌仟零叁拾捌元整"

Post-Installation

1.Install it,any you can use it one any twig fields/twig template.
2.In webform,to add a compute twig element,then in settings,Computed value/markup like this:
Full version
{% set amount = webform_submission.data.tel %}
{% if amount is not empty %}
{{ amount | number_to_chinese_uppercase }}
{% else %} NO Data!
{% endif %}

Note:"webform_submission.data.tel" is your Roman numerals field that will be converted.Such as 29909.

Or just fill it like this:
Simple version
{{ amount | number_to_chinese_uppercase }}
Note:"amount" is your Roman numerals field that will be converted.Such as 29909.

After it saved,view your submited webform,you can see it.
3.In twig template,you can use it also.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Nov 2024
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Dormant

Releases

Version Type Core Release date
8.x-1.x-dev Dev 8–11 Nov 20, 2024