BlogBest PracticesHow-to?

How to find deprecated content in Applanga

Are you wondering which keys stored in your Applanga projects are actually used in your app and which ones are just dead weight?

Many development teams find themselves with content or keys that are no longer used in their app or software. This deprecated content could be due to changes in terminology, improvements in usability, duplicated keys, general app updates, or deprecated features. It's often a natural part of the continuous software development life cycle.

General software best practices dictate that developers should identify deprecated keys and make the necessary adjustments to the codebase or configuration to remove them. These cleanups can prevent issues later down the line. Within localization workflows, removing keys that are no longer used can also cut costs by avoiding translation work that is no longer needed.

While Applanga doesn’t explicitly identify deprecated content or unused keys, users can apply tags and custom filtering to find all keys that are used in your latest app version. With the currently used keys identified, you can then decide if you should remove the ones that are not in use. There are a couple of options to determine which set of keys within an Applanga project are no longer used as part of the most recent version, release, or build.

One quick warning! Even if a key is no longer used in the latest version of your app, if previous versions of your app are still in circulation with users, removing those keys associated with earlier versions may lead to translation issues (missing translations). You may want to repeat the processes outlined below for every version of your app that might still be in-use before removing any keys from the Applanga project.

For SDK Integrations:

For projects with SDK integrations, you can enable the Applanga SDK Draft mode for mobile apps to help identify deprecated content in the connected Applanga project.

  1. Create a new tag on the Applanga dashboard to designate content that is currently used by the app (you will use this tag in a later step)
  2. On your mobile device, open the app and invoke the Draft Mode menu
  3. On the Draft Mode menu, select the option titled Tag Local Keys
  4. Apply the tag created in step 1 (the SDK will assign that specific tag to all keys in the app)
  5. Once tagging is complete in the app, navigate to the corresponding Applanga project in the dashboard
  6. Create a custom filter to find all keys without the tag created in step 1 (see the section below for details on creating a custom filter)
  7. Once the deprecated keys are identified, you can export, lock, and/or delete them as needed

For API Integrations

For projects employing the Applanga API integration, you can follow the same general principle of applying tags then using the custom filter options. This is a great option for web-based content. When compared to the SDK, the API integration does not inherently know which keys are available within the underlying web app which leads to one additional step.

  1. Reupload the local set of keys to the connected Applanga project
  2. Capture the key names from the API response
  3. Use those key names to set a specific and descriptive tag
  4. Once the tagged content is available within the Applanga project, navigate to the Applanga project editor
  5. Use the custom filter options to find all keys without the tag applied via the API integration (see the section below for details on creating the custom filter)
  6. Once the deprecated keys are identified, you can export, lock, and/or delete them as needed

Custom Filter for Deprecated Keys

Using the custom filter to find all keys without a specific tag is a relatively simple process.

  1. Click the filter icon then select Custom Filter

  2. In the Custom Filter menu, click New Filter

  3. In the Property field select Tag from the dropdown

  4. In the Condition field select is not assigned

  5. In the Tag list, select the tag you applied to the current app or software keys

  6. Click Apply (or Save and Apply to save this custom filter)

Applanga may not explicitly identify content that is no longer used in your app or software, but you can leverage some of our most popular features to find deprecated keys. Managing and pruning deprecated content is a great way to maintain a clean codebase as part of the overall development lifecycle. While it's likely inevitable to find outdated or unused content over time, developers can prevent issues by proactively identifying and removing deprecated keys.

Related Articles