|
|
@@ -489,5 +489,24 @@ The table options are defined in `jQuery.fn.bootstrapTable.defaults`.
|
|
|
Support all custom attributes.
|
|
|
</td>
|
|
|
</tr>
|
|
|
- </tbody>
|
|
|
+ <tr>
|
|
|
+ <td>locale</td>
|
|
|
+ <td>data-local</td>
|
|
|
+ <td>string</td>
|
|
|
+ <td>undefined</td>
|
|
|
+ <td>
|
|
|
+ Sets the locale to use (i.e. <code>'fr-CA'</code>). Locale files must be pre-loaded.
|
|
|
+ Allows for fallback locales, if loaded, in the following order:<br>
|
|
|
+ <ol>
|
|
|
+ <li>First tries for the locale as specified,</li>
|
|
|
+ <li>Then tries the locale with <code>'_'</code> translated to
|
|
|
+ <code>'-'</code> and the region code upper cased,</li>
|
|
|
+ <li>Then tries the the short locale code (i.e. <code>'fr'</code> instead of <code>'fr-CA'</code>),</li>
|
|
|
+ <li>And finally will use the last local file loaded (or the dfault locale if no locales loaded).</li>
|
|
|
+ </ol>
|
|
|
+ If left undfined or an empty string, uses the last locale loaded (or <code>'en-US'</code>
|
|
|
+ if no locale files loaded).
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </tbody>
|
|
|
</table>
|