languages
1 year ago
continents.php
5 years ago
countries.php
4 years ago
currency-info.php
2 years ago
locale-info.php
1 year ago
phone.php
5 years ago
states.php
1 year ago
units.php
3 years ago
units.php
29 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Units |
| 4 | * |
| 5 | * Returns a multidimensional array of measurement units and their labels. |
| 6 | * Unit labels should be defined in English and translated native through localization files. |
| 7 | * |
| 8 | * @package WooCommerce\i18n |
| 9 | * @version |
| 10 | */ |
| 11 | |
| 12 | defined( 'ABSPATH' ) || exit; |
| 13 | |
| 14 | return array( |
| 15 | 'weight' => array( |
| 16 | 'kg' => __( 'kg', 'woocommerce' ), |
| 17 | 'g' => __( 'g', 'woocommerce' ), |
| 18 | 'lbs' => __( 'lbs', 'woocommerce' ), |
| 19 | 'oz' => __( 'oz', 'woocommerce' ), |
| 20 | ), |
| 21 | 'dimensions' => array( |
| 22 | 'm' => __( 'm', 'woocommerce' ), |
| 23 | 'cm' => __( 'cm', 'woocommerce' ), |
| 24 | 'mm' => __( 'mm', 'woocommerce' ), |
| 25 | 'in' => __( 'in', 'woocommerce' ), |
| 26 | 'yd' => __( 'yd', 'woocommerce' ), |
| 27 | ), |
| 28 | ); |
| 29 |