0
我有一個包含翻譯的JSON文件。我特別有一個名爲Select_Time_Format
的屬性。我想在一個HTML字段的佔位符屬性來使用這個翻譯(如下圖所示)HTML/JSON:根據區域設置翻譯佔位符
<label for="time-format" i18ng="'Time_Format'"></label>
<div class="select2-container select x100" id="s2id4">
<select ngyn-select2
ng-model="$ctrl.tournament.time_format"
ng-options="key as label for (key, label) in $ctrl.timeFormats"
id="time-format"
name="time_format"
class="select x100"
placeholder="Select Time Format">
</select>
是否有某種方式的東西,如i18ng="'Select_Time_Format'"
更換placeholder="Select Time Format
?