add sample how to use capture to save translation to a variable