localization


How to set t-params.bind in a pair Map in Aurelia?


I have a pair Map like the following code in Aurelia:
public intervals = new Map<number, { key: string}>();
this.intervals.set(1, {key: "immediately"});
this.intervals.set(2, {key: "eight-hours"});
this.intervals.set(3, {key: "seven-days"});
By repeat.for I want to set a Context for localization purpose as you see in the following:
<select class="combobox" value.bind="errorIntervall">
<option model.bind="null" t="network.empty">-</option>
<option repeat.for="[number, key] of intervals" t="system.network.intervall"
t-params.bind="{ context: key }">
></option>
</select>
Here is my translation.json file too:
"network": {
"intervall_immediately": "Immediately",
"intervall_eight-hours": "every 8 h",
"intervall_seven-days": "every 7 days"
},
I did not find any way to access intervals.key .
Could you please help me?
I solved it, as you see in the following:
<select class="combobox" value.bind="errorIntervall">
<option model.bind="null" t="system.network.empty">-</option>
<option repeat.for="[number, interval] of intervals"
model.bind="interval"
t="system.network.interval"
t-params.bind="{ context: interval.key }">
></option>
</select>

Related Links

Instaling lang pack on debian circular dependency
Typo3 7.6 extbase repository matching only affect non-localized records
Are fields and screenshots of the primary language used when no localized versions are provided?
image (using create group) doesnot shows on device - While (as reference) works fine
SyncFusion: Localize Gantt
Pimcore While localization of a field move existing data to localized en(english) language
ICU/CLDR | ISO 639 Changes - Monitoring & Maintenance
TinyMCE windowManager open HTML form with translation
Why does GNU msgfmt silently omit these strings from catalog?
Context data passing variants which is a reference to another entity
Can't compile a new version of a translation
WiX find usergroup on non-english OS
Partial site translations in Umbraco
Is it possible to have same resource names (for resw) in different directories?
How to set localized texts for Label programmatically?
Using an emitter iBeacon to perform indoor localization

Categories

HOME
android
checkstyle
gpu
devise
vscode-extensions
cublas
pyqt4
bookmarks
banner
sendgrid-api-v3
categorical-data
drop-down-menu
php-5.6
openbugs
stellar.js
speech-synthesis
comsol
git-extensions
selinux
rubymotion
mount
custom-post-type
spotipy
livelink
jmockit
android-sugarorm
navigator
hivemq
openproject
wurfl
projects-and-solutions
ods
loading
opensmpp
news
photos
jide
double-click
chai-as-promised
hammer.js
aquamacs
video-conferencing
backbone-collections
git-flow
flac
reachability
file-uri
watch-os-2
mongodb-php
wso2developerstudio
observablecollection
mediametadataretriever
gcloud-ruby
createprocess
jnlua
relativelayout
iokit
microsoft-reporting
binomial-theorem
pax-exam
dronekit-android
baasbox
airbrake
pyobjc
user-permissions
cross-join
pseudo-class
angular-carousel
template-deduction
renderer
flex++
dolby-audio-api
android-loadermanager
pstack
monotouch.dialog
apache-commons-dbutils
collectionviewsource
metaweblog
ie-compatibility-mode
zen
cfwindow
lalr
entitykey

Resources

Encrypt Message