how to change json property string value based on logic?
<p>I have a scenario where i am loading template label dynamically from external json file <code>en.json</code> using angularJs translate , Now i am launching this screen from two different places in application so i want to set labels according to screen.So when <code>$stateParams.assessmentId</code> i want to set different string but that is not happening its always returning <code>"Process Owner(s) Responding to Challenge:"</code>.</p>

<p>1- How can i achieve that task based on <code>$stateParams</code> or any other <code>json</code> solution ?</p>

<p>2- How can i access external file en.json properties and update the value ?</p>

<p>main.html</p>

<pre><code>&lt;label  class="col-md-4" translate="processChallenge.processOwnerResponse"&gt;&lt;/label&gt;
</code></pre>

<p>en.json</p>

<pre><code> "processChallenge":{
             "processOwnerResToChlng":"Process Owner(s) Responding to Challenge:",
             "processOwnerResponse":"User Response:"
            },
</code></pre>

<p>ctrl.js</p>

<pre><code>if ($stateParams.processId) {
  processChallenge.processOwnerResToChlng = "Process Owner(s) Responding to Challenge:";

} else if ($stateParams.assessmentId) {
    processChallenge.processOwnerResToChlng = "Rcsa preparer(s) Responding to Challenge:";
}
</code></pre>