Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Amount to Chinese capital letters

No security coverage Maintenance fixes only

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.

Ask your assistant about Amount to Chinese capital letters

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

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 PHP Release date
8.x-1.x-dev Dev 8–11 Nov 20, 2024