forked from MapComplete/MapComplete
Various small fixes, add indication of which tags are added for power users
This commit is contained in:
parent
a55767c1e9
commit
47d755e59f
9 changed files with 147 additions and 59 deletions
|
@ -65,8 +65,12 @@ export default class Translation extends UIElement {
|
|||
this.translations = translations
|
||||
}
|
||||
|
||||
public replace(a, b) {
|
||||
return this.Subs({a: b});
|
||||
public replace(a: string, b: string) {
|
||||
if(a.startsWith("{") && a.endsWith("}")){
|
||||
a = a.substr(1, a.length - 2);
|
||||
}
|
||||
const result= this.Subs({[a]: b});
|
||||
return result;
|
||||
}
|
||||
|
||||
public R(): string {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue