![]() With namespaces, this is not a problem at all: e.g., the keys can be named order.save and profile.save. With a flat naming scheme, you will need to introduce special prefixes or suffixes to differentiate between those keys. For instance, multiple pages may contain keys called save with different contexts. Separating keys into namespaces provides the following benefits: These namespaces can, for example, be named after different pages of your site or portions of the screen. If the technology permits, try to nest your translation keys under separate namespaces. The result of this means finding all usages of the key and updating it as well, which is tedious and can lead to errors. Ultimately, if the value drastically changes you may need to update the key name accordingly to keep things in sync. Also, do not use translation key values as their names. ![]() On the other hand, don’t become overly specific: the key name should not strictly follow the value it holds. heading and dropdown, in turn, are not very helpful: when you see these two keys in your code, it’s really hard to understand what values they actually hold and what their purpose is. For example, names like welcoming_message or choose_locale are pretty self-explanatory. Basically, it’s very similar to properly naming your variables within the code. The key name should succinctly sum up its purpose and give a general idea of what value it holds. It is important to use sensible key names at all times. Finally, don’t forget that the key names should not be overly complex or meaningless (also below). Plus, remember to decide on what to do with duplicates. You could add special prefixes, postfixes, or place such keys under different namespaces (see below). Also, think of a way to differentiate similar keys that have different contexts. Therefore, do spend some time on establishing basic guidelines and ensure that every team member understands and supports them.įor example, decide on whether the keys should be named in CamelCase or snake_case. After all, you don’t want to end up in a situation where some devs are using a flat naming scheme with random key names, while others rely heavily on nesting. These are not hard and fast rules or requirements but instead they are small tips that it may be helpful to know.Ĭoming up with a proper naming scheme is very important because it will help get things organized. Today we are going to discuss translation keys and specifically talk about eight best practices regarding how to name and organize them properly. But, as the old saying goes: the devil is in the detail. The ideal way we spend our time is determined by how we fill it and what - and who - we share it with.So, you know that translating your app is important and you are also familiar with the localization process in general. “So, think about how you can make the space for each one more comfortable….Storage is the sacred ritual of returning things to where they belong.” “Everything you own wants to help you,” Marie says. Take time to honor the home and life you’ve created by spending time in quiet reflection, appreciation and gratitude of how you’ve filled your home - and do it often! Once you’ve determined what sparks joy for you, your journey is just beginning. ![]() “Set aside your excuses about being busy for a moment and consult your datebook one more time,” says Marie. To find your kurashi, you’ll need to commit to making time for yourself. How often have you said, “I don’t have time” when faced with two conflicting priorities? We often have more time than we realize but slip into habitually spending it on tasks that may matter less to us than we realize. Defining your ideal way of life means suspending disbelief and trusting your intuition. Often, we are our own worst enemies when setting and pursuing our goals. “Give yourself the freedom to imagine your own personal ‘wouldn’t it be nice if’ living space and let your heart brim with joy.” ![]() “Never hold back when imagining your ideal home and lifestyle,” says Marie. Rather than asking yourself, “What is my ideal space?” ask “What is my ideal life?” That life is kurashi, and it will not only guide you on your tidying journey but also help you plan how you’ll spend each day, set goals for your career, build personal relationships and make plans for your future. Expand Your VisionĬreating your ideal home is vital for a joyful life, but defining your kurashi means looking beyond those walls. Here are some of Marie’s essential tips from her book “Kurashi at Home.” 1. Kurashi invites you to use a similar practice in every aspect of your life. If you have used The KonMari Method™ to complete a tidying festival in your home, you have followed Marie’s advice to imagine your ideal lifestyle long before discarding. ![]()
0 Comments
Leave a Reply. |